pub struct AuthenticationState {
pub global_lock_until: Option<DateTime<Utc>>,
pub email_confirmation_salt: Option<String>,
pub email_confirmation_hash: Option<Vec<u8>>,
pub cba_challenge: Option<Vec<u8>>,
}Expand description
Authentication state.
This structure replaces stateless token during signing in.
Fields§
§global_lock_until: Option<DateTime<Utc>>Global lock for email notifications.
email_confirmation_salt: Option<String>Email confirmation salt.
email_confirmation_hash: Option<Vec<u8>>Email confirmation hash.
cba_challenge: Option<Vec<u8>>Signing in client-based authorization challenge.
Trait Implementations§
Source§impl Clone for AuthenticationState
impl Clone for AuthenticationState
Source§fn clone(&self) -> AuthenticationState
fn clone(&self) -> AuthenticationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AuthenticationState
impl Default for AuthenticationState
Source§fn default() -> AuthenticationState
fn default() -> AuthenticationState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthenticationState
impl<'de> Deserialize<'de> for AuthenticationState
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuthenticationState
Source§impl Hash for AuthenticationState
impl Hash for AuthenticationState
Source§impl PartialEq for AuthenticationState
impl PartialEq for AuthenticationState
Source§fn eq(&self, other: &AuthenticationState) -> bool
fn eq(&self, other: &AuthenticationState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuthenticationState
impl Serialize for AuthenticationState
impl StructuralPartialEq for AuthenticationState
Auto Trait Implementations§
impl Freeze for AuthenticationState
impl RefUnwindSafe for AuthenticationState
impl Send for AuthenticationState
impl Sync for AuthenticationState
impl Unpin for AuthenticationState
impl UnsafeUnpin for AuthenticationState
impl UnwindSafe for AuthenticationState
Blanket Implementations§
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.