pub struct FileInformation { /* private fields */ }Expand description
Metadata returned by get_file_information.
Implementations§
Source§impl FileInformation
impl FileInformation
Sourcepub fn get_name(&self) -> Option<&str>
pub fn get_name(&self) -> Option<&str>
Returns file name without extension, or directory name for directories.
Sourcepub fn get_extension(&self) -> Option<&str>
pub fn get_extension(&self) -> Option<&str>
Returns file extension for files, otherwise None.
Sourcepub fn get_unix_created(&self) -> Option<&u64>
pub fn get_unix_created(&self) -> Option<&u64>
Returns created-at Unix timestamp (seconds), when available on this platform.
Sourcepub fn get_time_since_created(&self) -> Option<&u64>
pub fn get_time_since_created(&self) -> Option<&u64>
Returns age since creation in seconds, when available.
Sourcepub fn get_unix_last_opened(&self) -> Option<&u64>
pub fn get_unix_last_opened(&self) -> Option<&u64>
Returns last-accessed Unix timestamp (seconds), when available.
Sourcepub fn get_time_since_last_opened(&self) -> Option<&u64>
pub fn get_time_since_last_opened(&self) -> Option<&u64>
Returns age since last access in seconds, when available.
Sourcepub fn get_unix_last_modified(&self) -> Option<&u64>
pub fn get_unix_last_modified(&self) -> Option<&u64>
Returns last-modified Unix timestamp (seconds), when available.
Sourcepub fn get_time_since_last_modified(&self) -> Option<&u64>
pub fn get_time_since_last_modified(&self) -> Option<&u64>
Returns age since last modification in seconds, when available.
Trait Implementations§
Source§impl Clone for FileInformation
impl Clone for FileInformation
Source§fn clone(&self) -> FileInformation
fn clone(&self) -> FileInformation
Returns a duplicate of the value. Read more
1.0.0 · 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 FileInformation
impl Debug for FileInformation
Source§impl Default for FileInformation
impl Default for FileInformation
Source§fn default() -> FileInformation
fn default() -> FileInformation
Returns the “default value” for a type. Read more
Source§impl PartialEq for FileInformation
impl PartialEq for FileInformation
Source§impl PartialOrd for FileInformation
impl PartialOrd for FileInformation
impl StructuralPartialEq for FileInformation
Auto Trait Implementations§
impl Freeze for FileInformation
impl RefUnwindSafe for FileInformation
impl Send for FileInformation
impl Sync for FileInformation
impl Unpin for FileInformation
impl UnsafeUnpin for FileInformation
impl UnwindSafe for FileInformation
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