pub struct FsSetAttrs {
pub mode: Option<u32>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub size: Option<u64>,
pub atime: Option<i64>,
pub mtime: Option<i64>,
}Expand description
Attributes accepted by setstat-style filesystem operations.
Fields§
§mode: Option<u32>Unix permission bits.
uid: Option<u32>Owner user ID.
gid: Option<u32>Owner group ID.
size: Option<u64>File size.
atime: Option<i64>Access time as Unix timestamp seconds.
mtime: Option<i64>Modification time as Unix timestamp seconds.
Trait Implementations§
Source§impl Clone for FsSetAttrs
impl Clone for FsSetAttrs
Source§fn clone(&self) -> FsSetAttrs
fn clone(&self) -> FsSetAttrs
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 FsSetAttrs
impl Debug for FsSetAttrs
Source§impl Default for FsSetAttrs
impl Default for FsSetAttrs
Source§fn default() -> FsSetAttrs
fn default() -> FsSetAttrs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FsSetAttrs
impl<'de> Deserialize<'de> for FsSetAttrs
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 FsSetAttrs
impl RefUnwindSafe for FsSetAttrs
impl Send for FsSetAttrs
impl Sync for FsSetAttrs
impl Unpin for FsSetAttrs
impl UnsafeUnpin for FsSetAttrs
impl UnwindSafe for FsSetAttrs
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