pub struct WebAuthnCredential {Show 18 fields
pub algorithm: Option<CoseAlgorithmIdentifier>,
pub attestation_type: Option<AttestationType>,
pub authenticator_supports_user_verification: Option<bool>,
pub credential_id: Option<String>,
pub data: Option<HashMap<String, Value>>,
pub discoverable: Option<bool>,
pub display_name: Option<String>,
pub id: Option<Uuid>,
pub insert_instant: Option<i64>,
pub last_use_instant: Option<i64>,
pub name: Option<String>,
pub public_key: Option<String>,
pub relying_party_id: Option<String>,
pub sign_count: Option<i32>,
pub tenant_id: Option<Uuid>,
pub transports: Option<Vec<String>>,
pub user_agent: Option<String>,
pub user_id: Option<Uuid>,
}
Expand description
WebAuthnCredential : A User’s WebAuthnCredential. Contains all data required to complete WebAuthn authentication ceremonies.
Fields§
§algorithm: Option<CoseAlgorithmIdentifier>
§attestation_type: Option<AttestationType>
§authenticator_supports_user_verification: Option<bool>
§credential_id: Option<String>
§data: Option<HashMap<String, Value>>
§discoverable: Option<bool>
§display_name: Option<String>
§id: Option<Uuid>
§insert_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
last_use_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
name: Option<String>
§public_key: Option<String>
§relying_party_id: Option<String>
§sign_count: Option<i32>
§tenant_id: Option<Uuid>
§transports: Option<Vec<String>>
§user_agent: Option<String>
§user_id: Option<Uuid>
Implementations§
Source§impl WebAuthnCredential
impl WebAuthnCredential
Sourcepub fn new() -> WebAuthnCredential
pub fn new() -> WebAuthnCredential
A User’s WebAuthnCredential. Contains all data required to complete WebAuthn authentication ceremonies.
Trait Implementations§
Source§impl Clone for WebAuthnCredential
impl Clone for WebAuthnCredential
Source§fn clone(&self) -> WebAuthnCredential
fn clone(&self) -> WebAuthnCredential
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 WebAuthnCredential
impl Debug for WebAuthnCredential
Source§impl Default for WebAuthnCredential
impl Default for WebAuthnCredential
Source§fn default() -> WebAuthnCredential
fn default() -> WebAuthnCredential
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebAuthnCredential
impl<'de> Deserialize<'de> for WebAuthnCredential
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
Source§impl PartialEq for WebAuthnCredential
impl PartialEq for WebAuthnCredential
Source§impl Serialize for WebAuthnCredential
impl Serialize for WebAuthnCredential
impl StructuralPartialEq for WebAuthnCredential
Auto Trait Implementations§
impl Freeze for WebAuthnCredential
impl RefUnwindSafe for WebAuthnCredential
impl Send for WebAuthnCredential
impl Sync for WebAuthnCredential
impl Unpin for WebAuthnCredential
impl UnwindSafe for WebAuthnCredential
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