pub struct DeleteOptions {
pub behavior: DeleteDirectoryBehavior,
pub commit_id: Option<CommitId>,
pub message: Option<String>,
pub expected_inode_id: Option<InodeId>,
}Expand description
Per-operation options, defined once in loonfs-api and shared with the
embedded loonfs runtime so the two surfaces cannot drift a field apart.
Options for deleting a path.
Fields§
§behavior: DeleteDirectoryBehaviorDirectory delete behavior.
commit_id: Option<CommitId>Optional idempotency key.
message: Option<String>Annotation recorded on the commit; part of the commit’s identity.
expected_inode_id: Option<InodeId>When set, the delete applies only while the path still resolves to this inode, so a raced rebinding fails instead of deleting the wrong inode.
Trait Implementations§
Source§impl Clone for DeleteOptions
impl Clone for DeleteOptions
Source§fn clone(&self) -> DeleteOptions
fn clone(&self) -> DeleteOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeleteOptions
impl Debug for DeleteOptions
Source§impl Default for DeleteOptions
impl Default for DeleteOptions
Source§fn default() -> DeleteOptions
fn default() -> DeleteOptions
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.