pub struct Launch {
pub principal_class: Option<String>,
pub complication_principal_class: Option<Vec<String>>,
pub bundle_executable: Option<String>,
pub environment: Option<DefaultDictionary>,
pub application_shortcut_items: Option<Vec<ApplicationShortcutItem>>,
}Expand description
Launch
Fields§
§principal_class: Option<String>The name of the bundle’s main executable class.
The system uses the class identified by this key to set the principalClass property of a bundle when it’s loaded.
Xcode sets the default value of this key to NSApplication for macOS apps, and to UIApplication for iOS and tvOS apps. For other types of bundles, you must set this key in The Info.plist File.
§Availability
- macOS 10.0+
§Framework
- Foundation
complication_principal_class: Option<Vec<String>>The name of the class that implements the complication data source protocol.
Xcode automatically includes this key in the information property list when you modify the WatchKit extension’s data source (General > Complication Configuration > Data Source class).
§Availability
- watchOS 2.0+
§Framework
- WatchKit
bundle_executable: Option<String>The name of the bundle’s executable file.
For an app, this key is the executable. For a loadable bundle, it’s the binary that’s loaded dynamically by the bundle. For a framework, it’s the shared library framework and must have the same name as the framework but without the .framework extension.
macOS uses this key to locate the bundle’s executable or shared library in cases where the user renames the app or bundle directory.
§Availability
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
§Framework
- Core Foundation
environment: Option<DefaultDictionary>Environment variables to set before launching the app.
§Availability
- macOS 10.0+
§Framework
- Core Services
application_shortcut_items: Option<Vec<ApplicationShortcutItem>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Launch
impl<'de> Deserialize<'de> for Launch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Launch
impl StructuralPartialEq for Launch
Auto Trait Implementations§
impl Freeze for Launch
impl RefUnwindSafe for Launch
impl Send for Launch
impl Sync for Launch
impl Unpin for Launch
impl UnwindSafe for Launch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.