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 { ... }
}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§
Sourceunsafe fn elements(&self) -> Retained<NSArray<PKIdentityElement>>
Available on crate feature PKIdentityElement only.
unsafe fn elements(&self) -> Retained<NSArray<PKIdentityElement>>
PKIdentityElement only.Set of elements that will be requested from the document.
Sourceunsafe fn intentToStoreForElement(
&self,
element: &PKIdentityElement,
) -> Option<Retained<PKIdentityIntentToStore>>
Available on crate features PKIdentityElement and PKIdentityIntentToStore only.
unsafe fn intentToStoreForElement( &self, element: &PKIdentityElement, ) -> Option<Retained<PKIdentityIntentToStore>>
PKIdentityElement and PKIdentityIntentToStore only.Intent to store for the given element, or nil if the element has not been added to this descriptor.
Sourceunsafe fn addElements_withIntentToStore(
&self,
elements: &NSArray<PKIdentityElement>,
intent_to_store: &PKIdentityIntentToStore,
)
Available on crate features PKIdentityElement and PKIdentityIntentToStore only.
unsafe fn addElements_withIntentToStore( &self, elements: &NSArray<PKIdentityElement>, intent_to_store: &PKIdentityIntentToStore, )
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.