pub struct GetCredentialReturn { /* private fields */ }Available on crate features
experimental and WebAuthn only.Expand description
Returns a single credential stored in the given virtual authenticator that matches the credential ID.
Implementations§
Source§impl GetCredentialReturn
impl GetCredentialReturn
pub fn new(credential: Credential) -> Self
pub fn credential(&self) -> &Credential
Methods from Deref<Target = Credential>§
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 GetCredentialReturn
impl Clone for GetCredentialReturn
Source§fn clone(&self) -> GetCredentialReturn
fn clone(&self) -> GetCredentialReturn
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 GetCredentialReturn
impl Debug for GetCredentialReturn
Source§impl Deref for GetCredentialReturn
impl Deref for GetCredentialReturn
Source§impl<'de> Deserialize<'de> for GetCredentialReturn
impl<'de> Deserialize<'de> for GetCredentialReturn
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 GetCredentialReturn
impl RefUnwindSafe for GetCredentialReturn
impl Send for GetCredentialReturn
impl Sync for GetCredentialReturn
impl Unpin for GetCredentialReturn
impl UnwindSafe for GetCredentialReturn
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