pub struct ApplicationIdentity { /* private fields */ }Expand description
A unique identifier for an application.
Implementations§
Source§impl ApplicationIdentity
impl ApplicationIdentity
Sourcepub fn new(name: String, authenticator_id: AuthType) -> ApplicationIdentity
pub fn new(name: String, authenticator_id: AuthType) -> ApplicationIdentity
Creates a new instance of ApplicationIdentity using the client-facing authenticator type. Note that for creating internal keys, new_internal should be used instead
Sourcepub fn new_with_auth(name: String, auth: Auth) -> ApplicationIdentity
pub fn new_with_auth(name: String, auth: Auth) -> ApplicationIdentity
Creates a new instance of ApplicationIdentity using the authenticator type. Note that for creating internal keys, new_internal should be used instead
Sourcepub fn new_internal() -> ApplicationIdentity
pub fn new_internal() -> ApplicationIdentity
Creates a new instance of ApplicationIdentity using the internal authenticator
An INTERNAL_APP_NAME as its application name
Sourcepub fn authenticator_id(&self) -> u8
pub fn authenticator_id(&self) -> u8
Get the numeric ID of the authenticator
Sourcepub fn is_internal(&self) -> bool
pub fn is_internal(&self) -> bool
Check if the application identity is of type internal
Trait Implementations§
Source§impl Clone for ApplicationIdentity
impl Clone for ApplicationIdentity
Source§fn clone(&self) -> ApplicationIdentity
fn clone(&self) -> ApplicationIdentity
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 ApplicationIdentity
impl Debug for ApplicationIdentity
Source§impl Display for ApplicationIdentity
impl Display for ApplicationIdentity
Source§impl Hash for ApplicationIdentity
impl Hash for ApplicationIdentity
Source§impl PartialEq for ApplicationIdentity
impl PartialEq for ApplicationIdentity
impl Eq for ApplicationIdentity
impl StructuralPartialEq for ApplicationIdentity
Auto Trait Implementations§
impl Freeze for ApplicationIdentity
impl RefUnwindSafe for ApplicationIdentity
impl Send for ApplicationIdentity
impl Sync for ApplicationIdentity
impl Unpin for ApplicationIdentity
impl UnwindSafe for ApplicationIdentity
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§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.