Trait ASCredentialIdentity

Source
pub unsafe trait ASCredentialIdentity: NSObjectProtocol {
    // Provided methods
    unsafe fn serviceIdentifier(
        &self,
    ) -> Retained<ASCredentialServiceIdentifier>
       where Self: Sized + Message { ... }
    unsafe fn user(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    unsafe fn recordIdentifier(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn rank(&self) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn setRank(&self, rank: NSInteger)
       where Self: Sized + Message { ... }
}
Available on crate feature ASCredentialIdentity only.
Expand description

An ASCredentialIdentity is used to describe an identity that can use a service upon successful authentication. Use this class to save entries into ASCredentialIdentityStore.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn serviceIdentifier(&self) -> Retained<ASCredentialServiceIdentifier>
where Self: Sized + Message,

Available on crate feature ASCredentialServiceIdentifier only.

Get the service identifier.

Source

unsafe fn user(&self) -> Retained<NSString>
where Self: Sized + Message,

Get the user.

Source

unsafe fn recordIdentifier(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

Get the record identifier.

You can utilize the record identifier to uniquely identify the credential identity in your local database.

Source

unsafe fn rank(&self) -> NSInteger
where Self: Sized + Message,

Get or set the rank of the credential identity object.

The system may utilize the rank to decide which credential identity precedes the other if two identities have the same service identifier. A credential identity with a larger rank value precedes one with a smaller value if both credential identities have the same service identifier. The default value of this property is 0.

Source

unsafe fn setRank(&self, rank: NSInteger)
where Self: Sized + Message,

Setter for rank.

Trait Implementations§

Source§

impl ProtocolType for dyn ASCredentialIdentity

Source§

const NAME: &'static str = "ASCredentialIdentity"

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 ASCredentialIdentity

Implementations on Foreign Types§

Source§

impl<T> ASCredentialIdentity for ProtocolObject<T>

Implementors§

Source§

impl ASCredentialIdentity for ASOneTimeCodeCredentialIdentity

Available on crate feature ASOneTimeCodeCredentialIdentity only.
Source§

impl ASCredentialIdentity for ASPasskeyCredentialIdentity

Available on crate feature ASPasskeyCredentialIdentity only.
Source§

impl ASCredentialIdentity for ASPasswordCredentialIdentity

Available on crate feature ASPasswordCredentialIdentity only.