pub struct SetAttrs {
pub mode: Option<u32>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub size: Option<u64>,
pub atime: Option<SetTime>,
pub mtime: Option<SetTime>,
}Expand description
Metadata changes; None fields are untouched. All-None is a no-op.
Fields§
§mode: Option<u32>New permission bits (low 12 bits used).
uid: Option<u32>New owner uid.
gid: Option<u32>New owner gid.
size: Option<u64>New length (truncates or extends).
atime: Option<SetTime>New access time.
mtime: Option<SetTime>New modification time.
Trait Implementations§
impl Copy for SetAttrs
Source§impl<'de> Deserialize<'de> for SetAttrs
impl<'de> Deserialize<'de> for SetAttrs
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
Auto Trait Implementations§
impl Freeze for SetAttrs
impl RefUnwindSafe for SetAttrs
impl Send for SetAttrs
impl Sync for SetAttrs
impl Unpin for SetAttrs
impl UnsafeUnpin for SetAttrs
impl UnwindSafe for SetAttrs
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