pub struct Documents {
    pub bundle_document_types: Option<Vec<BundleDocumentTypes>>,
    pub supports_document_browser: Option<bool>,
    pub supports_opening_documents_in_place: Option<bool>,
    pub persistent_store_type_key: Option<PersistentStoreTypeKey>,
    pub downloads_ubiquitous_contents: Option<bool>,
}
Expand description

Documents

Fields

bundle_document_types: Option<Vec<BundleDocumentTypes>>

The document types supported by the bundle.

Availability

  • iOS 2.0+
  • macOS 10.0+
  • tvOS 9.0+
  • watchOS 2.0+

Framework

  • Core Foundation
supports_document_browser: Option<bool>

A Boolean value indicating whether the app is a document-based app.

Availability

  • iOS 12.0+

Framework

  • Core Services
supports_opening_documents_in_place: Option<bool>

A Boolean value indicating whether the app may open the original document from a file provider, rather than a copy of the document.

Availability

  • iOS 12.0+

Framework

  • Core Services
persistent_store_type_key: Option<PersistentStoreTypeKey>

The Core Data persistent store type associated with a document type.

Availability

  • macOS 10.4+

Framework

  • Core Data
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.