pub struct ActivationRule {
pub dictionary_version: Option<i32>,
pub supports_attachments_with_max_count: Option<i32>,
pub supports_attachments_with_min_count: Option<i32>,
pub supports_file_with_max_count: Option<i32>,
pub supports_image_with_max_count: Option<i32>,
pub supports_movie_with_max_count: Option<i32>,
pub supports_text: Option<bool>,
pub supports_web_page_with_max_count: Option<i32>,
pub supports_web_url_with_max_count: Option<i32>,
pub uses_strict_matching: Option<bool>,
}Expand description
Activation Rule
Fields§
§dictionary_version: Option<i32>The version of the parent extension-activation rule dictionary.
§Availability
- iOS 9.0+
- macOS 10.11+
§Framework
- Foundation
supports_attachments_with_max_count: Option<i32>The maximum number of attachments that the app extension supports.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
supports_attachments_with_min_count: Option<i32>The minimum number of attachments that the app extension supports.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
supports_file_with_max_count: Option<i32>The maximum number of all types of files that the app extension supports.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
supports_image_with_max_count: Option<i32>The maximum number of image files that the app extension supports.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
supports_movie_with_max_count: Option<i32>The maximum number of movie files that the app extension supports.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
supports_text: Option<bool>A Boolean value indicating whether the app extension supports text.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
supports_web_page_with_max_count: Option<i32>The maximum number of webpages that the app extension supports.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
supports_web_url_with_max_count: Option<i32>The maximum number of HTTP URLs that the app extension supports.
§Availability
- iOS 8.0+
- macOS 10.10+
§Framework
- Foundation
uses_strict_matching: Option<bool>A Boolean value indicating whether strict or fuzzy matching is used when determining the asset types an app extension handles.
§Availability
- iOS 9.0+
- macOS 10.11+
§Framework
- Foundation
Trait Implementations§
Source§impl Clone for ActivationRule
impl Clone for ActivationRule
Source§fn clone(&self) -> ActivationRule
fn clone(&self) -> ActivationRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActivationRule
impl Debug for ActivationRule
Source§impl Default for ActivationRule
impl Default for ActivationRule
Source§fn default() -> ActivationRule
fn default() -> ActivationRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActivationRule
impl<'de> Deserialize<'de> for ActivationRule
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ActivationRule
impl PartialEq for ActivationRule
Source§impl Serialize for ActivationRule
impl Serialize for ActivationRule
impl Eq for ActivationRule
impl StructuralPartialEq for ActivationRule
Auto Trait Implementations§
impl Freeze for ActivationRule
impl RefUnwindSafe for ActivationRule
impl Send for ActivationRule
impl Sync for ActivationRule
impl Unpin for ActivationRule
impl UnwindSafe for ActivationRule
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.