pub enum ApprovalVariant {
Password {
password: String,
},
Question {
question: String,
answer: String,
},
TotpCode {
validation_code: String,
},
EmailConfirmation {
code: String,
},
Proxy {
ip: IpAddr,
},
U2fKey {
accepted_challenge: Vec<u8>,
},
X509Certificate {
public_certificate: Vec<u8>,
},
RawDilithium5Certificate {
public_key: Vec<u8>,
},
}Expand description
Approval variant.
Used to provide user information about authentication step during signing up/in.
Variants§
Password
Password.
Question
Question-answer pair.
TotpCode
TOTP code.
EmailConfirmation
Email code.
Proxy
IP address.
U2fKey
U2F accepted challenge.
X509Certificate
X.509 public certificate.
RawDilithium5Certificate
Dilithium (mode 5) public key.
Trait Implementations§
Source§impl Clone for ApprovalVariant
impl Clone for ApprovalVariant
Source§fn clone(&self) -> ApprovalVariant
fn clone(&self) -> ApprovalVariant
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 Debug for ApprovalVariant
impl Debug for ApprovalVariant
Source§impl<'de> Deserialize<'de> for ApprovalVariant
impl<'de> Deserialize<'de> for ApprovalVariant
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 ApprovalVariant
Source§impl Hash for ApprovalVariant
impl Hash for ApprovalVariant
Source§impl PartialEq for ApprovalVariant
impl PartialEq for ApprovalVariant
Source§fn eq(&self, other: &ApprovalVariant) -> bool
fn eq(&self, other: &ApprovalVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ApprovalVariant
impl Serialize for ApprovalVariant
impl StructuralPartialEq for ApprovalVariant
Source§impl ToSchema for ApprovalVariant
impl ToSchema for ApprovalVariant
Auto Trait Implementations§
impl Freeze for ApprovalVariant
impl RefUnwindSafe for ApprovalVariant
impl Send for ApprovalVariant
impl Sync for ApprovalVariant
impl Unpin for ApprovalVariant
impl UnsafeUnpin for ApprovalVariant
impl UnwindSafe for ApprovalVariant
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.