pub struct SMeta {
pub created_epoch_us: i64,
pub modified_epoch_us: i64,
pub size: i64,
pub is_file: bool,
pub is_dir: bool,
}
Expand description
A simplified file metadata structure with common, normalized fields. All fields are guaranteed to be present.
Fields§
§created_epoch_us: i64
Creation time since the Unix epoch in microseconds. If unavailable, this may fall back to the modification time.
modified_epoch_us: i64
Last modification time since the Unix epoch in microseconds.
size: i64
File size in bytes. Will be 0 for directories or when unavailable.
is_file: bool
Whether the path is a regular file.
is_dir: bool
Whether the path is a directory.
Auto Trait Implementations§
impl Freeze for SMeta
impl RefUnwindSafe for SMeta
impl Send for SMeta
impl Sync for SMeta
impl Unpin for SMeta
impl UnwindSafe for SMeta
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