pub struct PasskeyCredential {
pub credential_id: String,
pub user_id: String,
pub public_key: String,
pub aaguid: String,
pub counter: u32,
pub user: PublicKeyCredentialUserEntity,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub last_used_at: DateTime<Utc>,
}
Expand description
Stored credential information for a WebAuthn/Passkey.
This struct represents a stored passkey credential that can be used for authentication. It contains all the necessary information to verify subsequent authentications using the same credential, including the public key, credential ID, and counter value.
The credential is associated with a specific user and includes metadata about when it was created, updated, and last used.
Fields§
§credential_id: String
Raw credential ID bytes
user_id: String
User ID associated with this credential (database ID)
public_key: String
Public key bytes for the credential
aaguid: String
AAGUID of the authenticator
counter: u32
Counter value for the credential (used to prevent replay attacks)
user: PublicKeyCredentialUserEntity
User entity information
created_at: DateTime<Utc>
When the credential was created
updated_at: DateTime<Utc>
When the credential was last updated
last_used_at: DateTime<Utc>
When the credential was last used
Trait Implementations§
Source§impl Clone for PasskeyCredential
impl Clone for PasskeyCredential
Source§fn clone(&self) -> PasskeyCredential
fn clone(&self) -> PasskeyCredential
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PasskeyCredential
impl Debug for PasskeyCredential
Source§impl<'de> Deserialize<'de> for PasskeyCredential
impl<'de> Deserialize<'de> for PasskeyCredential
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>,
Source§impl<'r> FromRow<'r, PgRow> for PasskeyCredential
impl<'r> FromRow<'r, PgRow> for PasskeyCredential
Source§impl<'r> FromRow<'r, SqliteRow> for PasskeyCredential
impl<'r> FromRow<'r, SqliteRow> for PasskeyCredential
Auto Trait Implementations§
impl Freeze for PasskeyCredential
impl RefUnwindSafe for PasskeyCredential
impl Send for PasskeyCredential
impl Sync for PasskeyCredential
impl Unpin for PasskeyCredential
impl UnwindSafe for PasskeyCredential
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more