pub struct Storage {
    pub files: Option<Files>,
    pub installer_url: Option<String>,
    pub supports_purgeable_local_storage: Option<bool>,
    pub file_quarantine_enabled: Option<bool>,
    pub file_sharing_enabled: Option<bool>,
    pub resources_file_mapped: Option<bool>,
    pub downloads_ubiquitous_contents: Option<bool>,
}
Expand description

Storage

Fields

files: Option<Files>

Describes the files or directories the app installs on the system.

Availability

  • macOS 10.0+

Framework

  • AppKit
installer_url: Option<String>

The base path to the files or directories the app installs.

Availability

  • macOS 10.0+

Framework

  • AppKit
supports_purgeable_local_storage: Option<bool>

A Boolean value indicating whether the app continues working if the system purges the local storage.

Availability

  • iOS 9.3+

Framework

  • Foundation
file_quarantine_enabled: Option<bool>

A Boolean value indicating whether the files this app creates are quarantined by default.

Availability

  • macOS 10.0+

Framework

  • Core Services
file_sharing_enabled: Option<bool>

A Boolean value indicating whether the app shares files through iTunes.

Availability

  • iOS 3.2+
  • tvOS 9.0+
  • watchOS 2.0+

Framework

  • UIKit
resources_file_mapped: Option<bool>

A Boolean value indicating whether the app’s resources files should be mapped into memory.

Availability

  • macOS 10.0+

Framework

  • Core Foundation
downloads_ubiquitous_contents: Option<bool>

A Boolean value that indicates whether the system should download documents before handing them over to the app.

By default, the system displays the download progress. Set the value to YES if you want your app to display a custom download progress indicator instead.

Availability

  • macOS 11.0+

Framework

  • AppKit

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.