StorageItemProperties
struct · ferroui-base · v0.5.0
struct StorageItemProperties
Provides access to the content-related properties of an item (like a file or folder).
The dates are instants, SystemTimes (the DateTimeOffsets of the
reference); convert one for display with DateTimeOffset::try_from.
Members
new
fn new(size: Option<u64>, date_created: Option<SystemTime>, date_modified: Option<SystemTime>) -> Self
Creates the properties of an item. A value the platform cannot
provide is None.
size
fn size(self: &Self) -> Option<u64>
The size of the file in bytes.
Can be None if the property is not available.
date_created
fn date_created(self: &Self) -> Option<SystemTime>
The date and time that the current folder was created.
Can be None if the property is not available.
date_modified
fn date_modified(self: &Self) -> Option<SystemTime>
The date and time of the last time the file was modified.
Can be None if the property is not available.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.