#[non_exhaustive]pub struct DeleteOptions { /* private fields */ }Expand description
Options controlling delete operations.
§Examples
use qubit_fs::directory::DeleteOptions;
assert!(!DeleteOptions::default().recursive());Implementations§
Source§impl DeleteOptions
impl DeleteOptions
Sourcepub const fn recursive(&self) -> bool
pub const fn recursive(&self) -> bool
Returns whether container resources should be removed recursively.
Sourcepub const fn missing_ok(&self) -> bool
pub const fn missing_ok(&self) -> bool
Returns whether a missing target should be treated as success.
Sourcepub const fn if_match(&self) -> Option<&ResourceVersion>
pub const fn if_match(&self) -> Option<&ResourceVersion>
Returns the optional required ETag or provider version.
Sourcepub const fn with_recursive(self, recursive: bool) -> Self
pub const fn with_recursive(self, recursive: bool) -> Self
Replaces recursive container deletion.
Sourcepub const fn with_missing_ok(self, missing_ok: bool) -> Self
pub const fn with_missing_ok(self, missing_ok: bool) -> Self
Replaces missing-target acceptance.
Sourcepub fn with_if_match(self, if_match: Option<ResourceVersion>) -> Self
pub fn with_if_match(self, if_match: Option<ResourceVersion>) -> Self
Replaces the optional required ETag or provider version.
Sourcepub fn validate_against(
&self,
capabilities: FileSystemCapabilities,
) -> Result<(), FsError>
pub fn validate_against( &self, capabilities: FileSystemCapabilities, ) -> Result<(), FsError>
Validates required deletion semantics before provider side effects.
§Errors
Returns FsErrorKind::RequirementNotMet with the exact missing
recursive or conditional-delete capability.
Trait Implementations§
Source§impl Clone for DeleteOptions
impl Clone for DeleteOptions
Source§impl Debug for DeleteOptions
impl Debug for DeleteOptions
Source§impl Default for DeleteOptions
impl Default for DeleteOptions
impl Eq for DeleteOptions
Source§impl PartialEq for DeleteOptions
impl PartialEq for DeleteOptions
impl StructuralPartialEq for DeleteOptions
Auto Trait Implementations§
impl Freeze for DeleteOptions
impl RefUnwindSafe for DeleteOptions
impl Send for DeleteOptions
impl Sync for DeleteOptions
impl Unpin for DeleteOptions
impl UnsafeUnpin for DeleteOptions
impl UnwindSafe for DeleteOptions
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