PKIdentityDocumentDescriptor

Trait PKIdentityDocumentDescriptor 

Source
pub unsafe trait PKIdentityDocumentDescriptor: NSObjectProtocol {
    // Provided methods
    unsafe fn elements(&self) -> Retained<NSArray<PKIdentityElement>>
       where Self: Sized + Message { ... }
    unsafe fn intentToStoreForElement(
        &self,
        element: &PKIdentityElement,
    ) -> Option<Retained<PKIdentityIntentToStore>>
       where Self: Sized + Message { ... }
    unsafe fn addElements_withIntentToStore(
        &self,
        elements: &NSArray<PKIdentityElement>,
        intent_to_store: &PKIdentityIntentToStore,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature PKIdentityDocumentDescriptor only.
Expand description

“Descriptor” objects describe types of documents that can be requested. Different document types may have different sets of supported elements, functionality, or response formats. Clients should not define their own implementations of this protocol or subclass existing implementations.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn elements(&self) -> Retained<NSArray<PKIdentityElement>>
where Self: Sized + Message,

Available on crate feature PKIdentityElement only.

Set of elements that will be requested from the document.

Source

unsafe fn intentToStoreForElement( &self, element: &PKIdentityElement, ) -> Option<Retained<PKIdentityIntentToStore>>
where Self: Sized + Message,

Available on crate features PKIdentityElement and PKIdentityIntentToStore only.

Intent to store for the given element, or nil if the element has not been added to this descriptor.

Source

unsafe fn addElements_withIntentToStore( &self, elements: &NSArray<PKIdentityElement>, intent_to_store: &PKIdentityIntentToStore, )
where Self: Sized + Message,

Available on crate features PKIdentityElement and PKIdentityIntentToStore only.

Adds the set of elements and associates them with the intent to store. This method can be called multple times with the same intent to store to append additional elements. If the same element is specified multiple times with different intents to store, the most recent one wins.

Trait Implementations§

Source§

impl ProtocolType for dyn PKIdentityDocumentDescriptor

Source§

const NAME: &'static str = "PKIdentityDocumentDescriptor"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn PKIdentityDocumentDescriptor

Implementations on Foreign Types§

Source§

impl<T> PKIdentityDocumentDescriptor for ProtocolObject<T>

Implementors§