FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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.

    Source

    size

    fn size(self: &Self) -> Option<u64>
    

    The size of the file in bytes.

    Can be None if the property is not available.

    Source

    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.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.