pub struct DeletionService {}
Expand description
Service for recursive document deletion
Handles the complete deletion of a document and all its children:
- Identifies document type from path
- For strategies/initiatives: rm -r the folder
- For tasks: delete the file
- Caller can sync to update database
Implementations§
Source§impl DeletionService
impl DeletionService
pub fn new() -> Self
Sourcepub async fn delete_document_recursive(
&self,
filepath: &str,
) -> Result<DeletionResult>
pub async fn delete_document_recursive( &self, filepath: &str, ) -> Result<DeletionResult>
Delete a document and all its children recursively
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeletionService
impl RefUnwindSafe for DeletionService
impl Send for DeletionService
impl Sync for DeletionService
impl Unpin for DeletionService
impl UnwindSafe for DeletionService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more