pub struct AuthenticationResult {
pub credential_id: String,
pub new_sign_count: u32,
pub user_verified: bool,
}Expand description
Result of a successful authentication.
§Security note
AuthenticationResult::new_sign_count MUST be persisted by the caller
(compare-and-swap against the stored value) — see WebauthnCredential::sign_count.
Fields§
§credential_id: StringThe credential ID that authenticated.
new_sign_count: u32Updated sign count; persist this after verification succeeds.
user_verified: boolWhether user verification was performed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthenticationResult
impl RefUnwindSafe for AuthenticationResult
impl Send for AuthenticationResult
impl Sync for AuthenticationResult
impl Unpin for AuthenticationResult
impl UnsafeUnpin for AuthenticationResult
impl UnwindSafe for AuthenticationResult
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