# StorageItemProperties

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/platform/storage/struct-storageitemproperties/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct StorageItemProperties
```

Provides access to the content-related properties of an item (like a
file or folder).

The dates are instants, `SystemTime`s (the `DateTimeOffset`s of the
reference); convert one for display with `DateTimeOffset::try_from`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/storage_item_properties.rs#L9)

## Members

- [`new`](#function-new)
- [`size`](#function-size)
- [`date_created`](#function-date_created)
- [`date_modified`](#function-date_modified)

<a id="function-new"></a>

### new

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/storage_item_properties.rs#L18)

<a id="function-size"></a>

### size

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

The size of the file in bytes.

Can be `None` if the property is not available.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/storage_item_properties.rs#L25)

<a id="function-date_created"></a>

### date_created

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/storage_item_properties.rs#L32)

<a id="function-date_modified"></a>

### date_modified

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/storage_item_properties.rs#L39)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-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](/docs/0.5.0/api/).
