pub struct AuthenticationFlow(/* private fields */);Expand description
Single authentication flow.
To log in next time, user should provide one of constructed flows, with the same steps’ order and valid.
Implementations§
Source§impl AuthenticationFlow
impl AuthenticationFlow
Sourcepub fn with(self, approval: AuthenticationApproval) -> Self
pub fn with(self, approval: AuthenticationApproval) -> Self
Adds new authentication step approval.
Sourcepub fn as_slice(&self) -> &[AuthenticationApproval]
pub fn as_slice(&self) -> &[AuthenticationApproval]
Returns approval steps list.
Trait Implementations§
Source§impl Clone for AuthenticationFlow
impl Clone for AuthenticationFlow
Source§fn clone(&self) -> AuthenticationFlow
fn clone(&self) -> AuthenticationFlow
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 AuthenticationFlow
impl Debug for AuthenticationFlow
Source§impl Default for AuthenticationFlow
impl Default for AuthenticationFlow
Source§fn default() -> AuthenticationFlow
fn default() -> AuthenticationFlow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthenticationFlow
impl<'de> Deserialize<'de> for AuthenticationFlow
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 AuthenticationFlow
Source§impl Hash for AuthenticationFlow
impl Hash for AuthenticationFlow
Source§impl PartialEq for AuthenticationFlow
impl PartialEq for AuthenticationFlow
Source§fn eq(&self, other: &AuthenticationFlow) -> bool
fn eq(&self, other: &AuthenticationFlow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuthenticationFlow
impl Serialize for AuthenticationFlow
impl StructuralPartialEq for AuthenticationFlow
Source§impl ToSchema for AuthenticationFlow
impl ToSchema for AuthenticationFlow
Auto Trait Implementations§
impl Freeze for AuthenticationFlow
impl RefUnwindSafe for AuthenticationFlow
impl Send for AuthenticationFlow
impl Sync for AuthenticationFlow
impl Unpin for AuthenticationFlow
impl UnsafeUnpin for AuthenticationFlow
impl UnwindSafe for AuthenticationFlow
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.