mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 08:12:24 +00:00
Move DELETE method to Resource framework
This commit is contained in:
@@ -51,8 +51,6 @@ pub trait ResourceService: Sized {
|
||||
path_components: Self::PathComponents,
|
||||
) -> Result<Self, Self::Error>;
|
||||
|
||||
async fn get_file(&self) -> Result<Self::File, Self::Error>;
|
||||
|
||||
async fn get_members(
|
||||
&self,
|
||||
_auth_info: AuthInfo,
|
||||
@@ -60,7 +58,11 @@ pub trait ResourceService: Sized {
|
||||
Ok(vec![])
|
||||
}
|
||||
|
||||
async fn get_file(&self) -> Result<Self::File, Self::Error>;
|
||||
async fn save_file(&self, file: Self::File) -> Result<(), Self::Error>;
|
||||
async fn delete_file(&self, _use_trashbin: bool) -> Result<(), Self::Error> {
|
||||
Err(crate::Error::Unauthorized.into())
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user