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§
Source§impl Clone for LACredential
impl Clone for LACredential
Source§fn clone(&self) -> LACredential
fn clone(&self) -> LACredential
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LACredential
impl Debug for LACredential
Source§impl PartialEq for LACredential
impl PartialEq for LACredential
Source§fn eq(&self, other: &LACredential) -> bool
fn eq(&self, other: &LACredential) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LACredential
impl StructuralPartialEq for LACredential
Auto Trait Implementations§
impl Freeze for LACredential
impl RefUnwindSafe for LACredential
impl Send for LACredential
impl Sync for LACredential
impl Unpin for LACredential
impl UnsafeUnpin for LACredential
impl UnwindSafe for LACredential
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