[][src]Struct creator_tools::types::Extension

pub struct Extension {
    pub intents_supported: Option<Vec<String>>,
    pub pro_extension_attributes: Option<BTreeMap<String, String>>,
    pub pro_extension_principal_class: Option<String>,
    pub pro_extension_principal_view_controller_class: Option<String>,
    pub pro_extension_uuid: Option<String>,
    pub password_generation_requirements: Option<String>,
    pub supports_strong_password_upgrade: Option<bool>,
    pub supports_upgrade_to_sign_in_with_apple: Option<bool>,
    pub extension_action_wants_full_screen_presentation: Option<bool>,
    pub extension_attributes: Option<ExtensionAttributes>,
    pub extension_main_storyboard: Option<String>,
    pub extension_overrides_host_ui_appearance: Option<bool>,
    pub extension_point_identifier: Option<ExtensionPointIdentifier>,
    pub extension_principal_class: Option<String>,
    pub safari_content_script: Option<Vec<SafariContentScript>>,
    pub safari_context_menu: Option<Vec<SafariContextMenu>>,
    pub safari_style_sheet: Option<Vec<SafariStyleSheet>>,
    pub safari_toolbar_item: Option<SafariToolbarItem>,
    pub safari_website_access: Option<SafariWebsiteAccess>,
}

Extension.

Fields

intents_supported: Option<Vec<String>>

The names of the intents that an extension supports.

pro_extension_attributes: Option<BTreeMap<String, String>>

A dictionary that specifies the minimum size of the floating window in which Final Cut Pro hosts the extension view.

pro_extension_principal_class: Option<String>

The name of the class with the principal implementation of your extension.

The Compressor app instantiates the class specified in the ProExtensionPrincipalClass key to convert source files to the output format your extension supports.

pro_extension_principal_view_controller_class: Option<String>

The name of the principal view controller class of your extension.

This key provides the name of the primary view controller class of your extension that adopts the NSViewController protocol. When you create an extension, the Xcode template automatically includes this key in the workflow extension information property list. You only modify the value of this key when you rename the primary view controller class in your extension.

pro_extension_uuid: Option<String>

A UUID string that uniquely identifies your extension to the Compressor app.

The value for this key is a placeholder UUID the Xcode template generates. Each extension must have a unique UUID. When you build an extension for the first time, the build script in the Xcode template replaces the placeholder UUID with a new UUID. The new UUID fulfills the uniqueness and persistence requirement for ProExtensionUUID. For subsequent rebuilds, the UUID stays the same because the Compressor app uses this UUID to differentiate between previously saved and newly discovered extensions.

password_generation_requirements: Option<String>

Account Authentication Modification. The rules the system satisfies when generating a strong password for your extension during an automatic upgrade.

supports_strong_password_upgrade: Option<bool>

Account Authentication Modification. A Boolean value that indicates whether the extension supports upgrading a user’s password to a strong password.

supports_upgrade_to_sign_in_with_apple: Option<bool>

Account Authentication Modification. A Boolean value that indicates whether the extension supports upgrading from using password authentication to using Sign in with Apple.

extension_action_wants_full_screen_presentation: Option<bool>

A Boolean value indicating whether the Action extension is presented in full screen.

extension_attributes: Option<ExtensionAttributes>

Properties of an app extension.

extension_main_storyboard: Option<String>

The name of the app extension’s main storyboard file.

This key is mutually exclusive with NSExtensionPrincipalClass. Typically, Xcode sets the value of this key when creating an App Extension target in your project. If you change the name of your storyboard file, remember to update the value of this key.

extension_overrides_host_ui_appearance: Option<bool>

A Boolean value indicating whether the app extension ignores appearance changes made by the host app.

extension_point_identifier: Option<ExtensionPointIdentifier>

The extension point that supports an app extension.

extension_principal_class: Option<String>

The custom class that implements an app extension’s primary view or functionality.

This key is mutually exclusive with NSExtensionMainStoryboard. Typically, Xcode sets the value of this key when creating an App Extension target in your project. If you change the name of the specified class, remember to update the value of this key.

safari_content_script: Option<Vec<SafariContentScript>>

The content scripts for a Safari extension.

safari_context_menu: Option<Vec<SafariContextMenu>>

The context menu items for a Safari extension.

safari_style_sheet: Option<Vec<SafariStyleSheet>>

The style sheet for a Safari extension.

safari_toolbar_item: Option<SafariToolbarItem>

The items to add to the toolbar for a Safari extension.

safari_website_access: Option<SafariWebsiteAccess>

The webpages a Safari extension can access.

Trait Implementations

impl Clone for Extension[src]

impl Debug for Extension[src]

impl Default for Extension[src]

impl<'de> Deserialize<'de> for Extension[src]

impl PartialEq<Extension> for Extension[src]

impl Serialize for Extension[src]

impl StructuralPartialEq for Extension[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.