Struct webauthn_rs_core::interface::AuthenticationState
source · [−]pub struct AuthenticationState { /* private fields */ }Expand description
The in progress state of an authentication attempt. You must persist this associated to the UserID requesting the registration.
Implementations
sourceimpl AuthenticationState
impl AuthenticationState
sourcepub fn set_allowed_credentials(&mut self, credentials: Vec<Credential>)
pub fn set_allowed_credentials(&mut self, credentials: Vec<Credential>)
set which credentials the user is allowed to authenticate with. This is used as part of resident key authentication flows where we need to inject the set of viable credentials after the client has sent us their public key credential and we identify the user.
Trait Implementations
sourceimpl Clone for AuthenticationState
impl Clone for AuthenticationState
sourcefn clone(&self) -> AuthenticationState
fn clone(&self) -> AuthenticationState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AuthenticationState
impl Debug for AuthenticationState
sourceimpl<'de> Deserialize<'de> for AuthenticationState
impl<'de> Deserialize<'de> for AuthenticationState
sourcefn 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
sourceimpl Serialize for AuthenticationState
impl Serialize for AuthenticationState
Auto Trait Implementations
impl RefUnwindSafe for AuthenticationState
impl Send for AuthenticationState
impl Sync for AuthenticationState
impl Unpin for AuthenticationState
impl UnwindSafe for AuthenticationState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more