pub struct AuthenticationApproval(/* private fields */);Expand description
Authentication step approval.
Implementations§
Source§impl AuthenticationApproval
impl AuthenticationApproval
Sourcepub fn email_code(code: impl ToString) -> Self
pub fn email_code(code: impl ToString) -> Self
EmailConfirmation.
Sourcepub fn as_variant(&self) -> &ApprovalVariant
pub fn as_variant(&self) -> &ApprovalVariant
Returns raw approval variant.
Source§impl AuthenticationApproval
impl AuthenticationApproval
Sourcepub fn to_requirement(&self) -> AuthenticationRequirement
pub fn to_requirement(&self) -> AuthenticationRequirement
Constructs a requirement from given approval.
In other words, approved step on causes requirement usage.
Trait Implementations§
Source§impl Clone for AuthenticationApproval
impl Clone for AuthenticationApproval
Source§fn clone(&self) -> AuthenticationApproval
fn clone(&self) -> AuthenticationApproval
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 AuthenticationApproval
impl Debug for AuthenticationApproval
Source§impl<'de> Deserialize<'de> for AuthenticationApproval
impl<'de> Deserialize<'de> for AuthenticationApproval
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 AuthenticationApproval
Source§impl Hash for AuthenticationApproval
impl Hash for AuthenticationApproval
Source§impl PartialEq for AuthenticationApproval
impl PartialEq for AuthenticationApproval
Source§fn eq(&self, other: &AuthenticationApproval) -> bool
fn eq(&self, other: &AuthenticationApproval) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuthenticationApproval
impl Serialize for AuthenticationApproval
impl StructuralPartialEq for AuthenticationApproval
Source§impl ToSchema for AuthenticationApproval
impl ToSchema for AuthenticationApproval
Auto Trait Implementations§
impl Freeze for AuthenticationApproval
impl RefUnwindSafe for AuthenticationApproval
impl Send for AuthenticationApproval
impl Sync for AuthenticationApproval
impl Unpin for AuthenticationApproval
impl UnsafeUnpin for AuthenticationApproval
impl UnwindSafe for AuthenticationApproval
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.