#[non_exhaustive]pub struct TouchOptions {
pub create: bool,
pub expected_revision: Option<Revision>,
}Expand description
Options controlling a file touch operation.
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.create: boolWhether touching a missing path creates an empty regular file.
expected_revision: Option<Revision>An optional optimistic precondition on an existing file.
Implementations§
Source§impl TouchOptions
impl TouchOptions
Trait Implementations§
Source§impl Clone for TouchOptions
impl Clone for TouchOptions
Source§fn clone(&self) -> TouchOptions
fn clone(&self) -> TouchOptions
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 TouchOptions
Source§impl Debug for TouchOptions
impl Debug for TouchOptions
Source§impl Default for TouchOptions
impl Default for TouchOptions
Source§impl<'de> Deserialize<'de> for TouchOptions
impl<'de> Deserialize<'de> for TouchOptions
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 TouchOptions
Source§impl PartialEq for TouchOptions
impl PartialEq for TouchOptions
Source§impl Serialize for TouchOptions
impl Serialize for TouchOptions
impl StructuralPartialEq for TouchOptions
Auto Trait Implementations§
impl Freeze for TouchOptions
impl RefUnwindSafe for TouchOptions
impl Send for TouchOptions
impl Sync for TouchOptions
impl Unpin for TouchOptions
impl UnsafeUnpin for TouchOptions
impl UnwindSafe for TouchOptions
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