pub struct Passkey {
pub aaguid: Option<String>,
pub created_at: DateTime<Utc>,
pub last_used_at: Option<DateTime<Utc>>,
pub nickname: Option<String>,
pub uuid: Uuid,
}Expand description
A WebAuthn credential registered to the current user.
JSON schema
{
"title": "Passkey",
"description": "A WebAuthn credential registered to the current user.",
"type": "object",
"required": [
"created_at",
"uuid"
],
"properties": {
"aaguid": {
"description": "The authenticator's AAGUID (model identifier), if
reported.",
"type": [
"string",
"null"
]
},
"created_at": {
"description": "When the passkey was registered.",
"type": "string",
"format": "date-time"
},
"last_used_at": {
"description": "When the passkey was last used to authenticate, if
ever.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"nickname": {
"description": "Human label for the passkey.",
"type": [
"string",
"null"
]
},
"uuid": {
"description": "Stable passkey id.",
"type": "string",
"format": "uuid"
}
}
}Fields§
§aaguid: Option<String>The authenticator’s AAGUID (model identifier), if reported.
created_at: DateTime<Utc>When the passkey was registered.
last_used_at: Option<DateTime<Utc>>When the passkey was last used to authenticate, if ever.
nickname: Option<String>Human label for the passkey.
uuid: UuidStable passkey id.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Passkey
impl<'de> Deserialize<'de> for Passkey
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 Passkey
impl RefUnwindSafe for Passkey
impl Send for Passkey
impl Sync for Passkey
impl Unpin for Passkey
impl UnsafeUnpin for Passkey
impl UnwindSafe for Passkey
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