pub struct Metadata {
pub path: Utf8PathBuf,
pub size: u64,
pub is_dir: bool,
pub is_file: bool,
pub link_target: Option<Utf8PathBuf>,
pub uid: u32,
pub gid: u32,
pub permissions: u32,
pub atime: OffsetDateTime,
pub mtime: OffsetDateTime,
}
Fields§
§path: Utf8PathBuf
§size: u64
§is_dir: bool
§is_file: bool
§link_target: Option<Utf8PathBuf>
§uid: u32
§gid: u32
§permissions: u32
§atime: OffsetDateTime
§mtime: OffsetDateTime
Implementations§
Trait Implementations§
Source§impl From<&Metadata> for FileAttributes
impl From<&Metadata> for FileAttributes
Source§fn from(metadata: &Metadata) -> FileAttributes
fn from(metadata: &Metadata) -> FileAttributes
Converts to this type from the input type.
Source§impl From<Metadata> for FileAttributes
impl From<Metadata> for FileAttributes
Source§fn from(metadata: Metadata) -> FileAttributes
fn from(metadata: Metadata) -> FileAttributes
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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