pub struct Metadata {
pub is_dir: bool,
pub is_file: bool,
pub is_symlink: bool,
pub size: u64,
pub modified: Option<SystemTime>,
}Expand description
Metadata about a file or directory.
Fields§
§is_dir: boolTrue if this is a directory.
is_file: boolTrue if this is a file.
is_symlink: boolTrue if this is a symbolic link.
size: u64Size in bytes (0 for directories).
modified: Option<SystemTime>Last modification time, if available.
Trait Implementations§
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