pub struct Credential { /* private fields */ }Available on crate features
experimental and WebAuthn only.Implementations§
Source§impl Credential
impl Credential
pub fn builder() -> CredentialBuilder
pub fn credential_id(&self) -> &str
pub fn is_resident_credential(&self) -> bool
Sourcepub fn rp_id(&self) -> Option<&String>
pub fn rp_id(&self) -> Option<&String>
Relying Party ID the credential is scoped to. Must be set when adding a credential.
Sourcepub fn private_key(&self) -> &str
pub fn private_key(&self) -> &str
The ECDSA P-256 private key in PKCS#8 format.
Sourcepub fn user_handle(&self) -> Option<&String>
pub fn user_handle(&self) -> Option<&String>
An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user.
Sourcepub fn sign_count(&self) -> u32
pub fn sign_count(&self) -> u32
Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter
Sourcepub fn large_blob(&self) -> Option<&String>
pub fn large_blob(&self) -> Option<&String>
The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
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 Credential
impl Debug for Credential
Source§impl<'de> Deserialize<'de> for Credential
impl<'de> Deserialize<'de> for Credential
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnwindSafe for Credential
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