Struct webauthn_rs::prelude::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§
source§impl 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§
source§impl Clone for AuthenticationState
impl Clone for AuthenticationState
source§fn clone(&self) -> AuthenticationState
fn clone(&self) -> AuthenticationState
Returns a copy 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 moresource§impl Debug for AuthenticationState
impl Debug for AuthenticationState
source§impl<'de> Deserialize<'de> for AuthenticationState
impl<'de> Deserialize<'de> for AuthenticationState
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AuthenticationState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AuthenticationState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for AuthenticationState
impl Serialize for AuthenticationState
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> 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