#[non_exhaustive]pub enum StatelessHint {
Password {
min_size: usize,
should_contain_different_case: bool,
should_contain_symbols: bool,
},
Totp {
alg: String,
generated_secret: String,
},
U2f {
challenge: Challenge,
},
Email {
salt: String,
hash: Vec<u8>,
},
}Expand description
Stateless data of creating user step.
This type is used to be stored in preregistration state on client-side while registering to minimize C3A storage usage.
Read-only due to storage a copy in signed tokens.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Password
Password data is only to clients (to provide clues about requirements).
Totp
Information about TOTP 2FA. User should save these options in their TOTP applications (for example, Google Authenticator or KeePass).
U2f
U2F challenge.
Email confirmation code hash & salt.
Trait Implementations§
Source§impl Clone for StatelessHint
impl Clone for StatelessHint
Source§fn clone(&self) -> StatelessHint
fn clone(&self) -> StatelessHint
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 moreSource§impl<'de> Deserialize<'de> for StatelessHint
impl<'de> Deserialize<'de> for StatelessHint
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
Source§impl Hash for StatelessHint
impl Hash for StatelessHint
Source§impl PartialEq for StatelessHint
impl PartialEq for StatelessHint
Source§impl Serialize for StatelessHint
impl Serialize for StatelessHint
Source§impl ToSchema for StatelessHint
impl ToSchema for StatelessHint
impl Eq for StatelessHint
impl StructuralPartialEq for StatelessHint
Auto Trait Implementations§
impl Freeze for StatelessHint
impl RefUnwindSafe for StatelessHint
impl Send for StatelessHint
impl Sync for StatelessHint
impl Unpin for StatelessHint
impl UnwindSafe for StatelessHint
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,
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.