pub struct LACredential { /* private fields */ }Expand description
Owned credential bytes paired with their LACredentialType.
Implementations§
Source§impl LACredential
impl LACredential
Sourcepub fn new(credential_type: LACredentialType, bytes: impl Into<Vec<u8>>) -> Self
pub fn new(credential_type: LACredentialType, bytes: impl Into<Vec<u8>>) -> Self
Create a credential from raw bytes.
Sourcepub fn application_password(bytes: impl Into<Vec<u8>>) -> Self
pub fn application_password(bytes: impl Into<Vec<u8>>) -> Self
Create an application-password credential.
Sourcepub fn smart_card_pin(bytes: impl Into<Vec<u8>>) -> Self
pub fn smart_card_pin(bytes: impl Into<Vec<u8>>) -> Self
Create a smart-card-PIN credential.
Sourcepub const fn credential_type(&self) -> LACredentialType
pub const fn credential_type(&self) -> LACredentialType
Return the credential kind.
Trait Implementations§
Auto Trait Implementations§
impl Forget for LACredential
impl Freeze for LACredential
impl Move for LACredential
impl RefUnwindSafe for LACredential
impl Send for LACredentialwhere
RawVecInner: Send,
impl Sync for LACredentialwhere
RawVecInner: Sync,
impl Unpin for LACredential
impl UnsafeUnpin for LACredential
impl UnwindSafe for LACredentialwhere
RawVecInner: UnwindSafe,
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