#[non_exhaustive]pub struct RemoveOptions {
pub recursive: bool,
pub expected_revision: Option<Revision>,
}Expand description
Options controlling permanent removal.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.recursive: boolWhether a directory and all descendants may be removed.
expected_revision: Option<Revision>An optional optimistic precondition on the target node.
Implementations§
Source§impl RemoveOptions
impl RemoveOptions
Trait Implementations§
Source§impl Clone for RemoveOptions
impl Clone for RemoveOptions
Source§fn clone(&self) -> RemoveOptions
fn clone(&self) -> RemoveOptions
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 moreimpl Copy for RemoveOptions
Source§impl Debug for RemoveOptions
impl Debug for RemoveOptions
Source§impl Default for RemoveOptions
impl Default for RemoveOptions
Source§fn default() -> RemoveOptions
fn default() -> RemoveOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RemoveOptions
impl<'de> Deserialize<'de> for RemoveOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RemoveOptions
Source§impl PartialEq for RemoveOptions
impl PartialEq for RemoveOptions
Source§impl Serialize for RemoveOptions
impl Serialize for RemoveOptions
impl StructuralPartialEq for RemoveOptions
Auto Trait Implementations§
impl Freeze for RemoveOptions
impl RefUnwindSafe for RemoveOptions
impl Send for RemoveOptions
impl Sync for RemoveOptions
impl Unpin for RemoveOptions
impl UnsafeUnpin for RemoveOptions
impl UnwindSafe for RemoveOptions
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