pub struct MetadataPatch { /* private fields */ }Expand description
Requested changes to a filesystem object’s metadata.
Implementations§
Source§impl MetadataPatch
impl MetadataPatch
Sourcepub fn user(&mut self, user: OwnershipIdentity) -> &mut Self
pub fn user(&mut self, user: OwnershipIdentity) -> &mut Self
Sets the replacement owner.
Sourcepub fn group(&mut self, group: OwnershipIdentity) -> &mut Self
pub fn group(&mut self, group: OwnershipIdentity) -> &mut Self
Sets the replacement group.
Sourcepub fn accessed(&mut self, accessed: i128) -> &mut Self
pub fn accessed(&mut self, accessed: i128) -> &mut Self
Sets the access time in nanoseconds since the Unix epoch.
Sourcepub fn modified(&mut self, modified: i128) -> &mut Self
pub fn modified(&mut self, modified: i128) -> &mut Self
Sets the modification time in nanoseconds since the Unix epoch.
Sourcepub fn created(&mut self, created: i128) -> &mut Self
pub fn created(&mut self, created: i128) -> &mut Self
Sets the creation time in nanoseconds since the Unix epoch.
Sourcepub fn attribute(&mut self, flag: AttrFlags, value: Option<bool>) -> &mut Self
pub fn attribute(&mut self, flag: AttrFlags, value: Option<bool>) -> &mut Self
Requests that an attribute be set, cleared, or left unchanged.
Sourcepub fn follow_links(&mut self, follow: bool) -> &mut Self
pub fn follow_links(&mut self, follow: bool) -> &mut Self
Selects whether the operation follows symbolic links.
Sourcepub fn with_mode(self, mode: Mode) -> Self
pub fn with_mode(self, mode: Mode) -> Self
Sets the replacement Unix mode and returns the patch.
Sourcepub fn with_user(self, user: OwnershipIdentity) -> Self
pub fn with_user(self, user: OwnershipIdentity) -> Self
Sets the replacement owner and returns the patch.
Sourcepub fn with_group(self, group: OwnershipIdentity) -> Self
pub fn with_group(self, group: OwnershipIdentity) -> Self
Sets the replacement group and returns the patch.
Sourcepub fn with_accessed(self, accessed: i128) -> Self
pub fn with_accessed(self, accessed: i128) -> Self
Sets the access time and returns the patch.
Sourcepub fn with_modified(self, modified: i128) -> Self
pub fn with_modified(self, modified: i128) -> Self
Sets the modification time and returns the patch.
Sourcepub fn with_created(self, created: i128) -> Self
pub fn with_created(self, created: i128) -> Self
Sets the creation time and returns the patch.
Sourcepub fn with_attribute(self, flag: AttrFlags, value: Option<bool>) -> Self
pub fn with_attribute(self, flag: AttrFlags, value: Option<bool>) -> Self
Requests an attribute change and returns the patch.
Sourcepub fn with_follow_links(self, follow: bool) -> Self
pub fn with_follow_links(self, follow: bool) -> Self
Selects symbolic-link following and returns the patch.
Trait Implementations§
Source§impl Clone for MetadataPatch
impl Clone for MetadataPatch
Source§fn clone(&self) -> MetadataPatch
fn clone(&self) -> MetadataPatch
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetadataPatch
impl Debug for MetadataPatch
Source§impl Default for MetadataPatch
impl Default for MetadataPatch
Source§impl<'de> Deserialize<'de> for MetadataPatch
impl<'de> Deserialize<'de> for MetadataPatch
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>,
impl Eq for MetadataPatch
Source§impl PartialEq for MetadataPatch
impl PartialEq for MetadataPatch
Source§impl Serialize for MetadataPatch
impl Serialize for MetadataPatch
impl StructuralPartialEq for MetadataPatch
Auto Trait Implementations§
impl Freeze for MetadataPatch
impl RefUnwindSafe for MetadataPatch
impl Send for MetadataPatch
impl Sync for MetadataPatch
impl Unpin for MetadataPatch
impl UnsafeUnpin for MetadataPatch
impl UnwindSafe for MetadataPatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more