pub struct AuthenticatedPasskey {
pub credential_id: Vec<u8>,
pub sign_count: u32,
pub user_verified: bool,
pub needs_update: bool,
}Expand description
Successful authentication result — carries the credential id the
caller looks up in auth.passkeys, plus the new sign-count the
caller persists (cheap UPDATE keyed on credential_id).
Fields§
§credential_id: Vec<u8>Raw bytes of the verified credential id. Matches the
auth.passkeys.credential_id primary key.
sign_count: u32New sign-count from the authenticator. Spec requires the server to assert this is greater than the stored value — when it isn’t, the caller MAY treat the credential as cloned and revoke it.
user_verified: boolWhether the user verified themselves on this authentication (PIN, biometric, …). Useful for step-up flows.
needs_update: boolwebauthn-rs thinks the stored Passkey blob is out-of-date with
respect to the new AuthenticationResult (counter or backup
state changed). Re-persist via the user store when true.
Trait Implementations§
Source§impl Clone for AuthenticatedPasskey
impl Clone for AuthenticatedPasskey
Source§fn clone(&self) -> AuthenticatedPasskey
fn clone(&self) -> AuthenticatedPasskey
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 moreAuto Trait Implementations§
impl Freeze for AuthenticatedPasskey
impl RefUnwindSafe for AuthenticatedPasskey
impl Send for AuthenticatedPasskey
impl Sync for AuthenticatedPasskey
impl Unpin for AuthenticatedPasskey
impl UnsafeUnpin for AuthenticatedPasskey
impl UnwindSafe for AuthenticatedPasskey
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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