pub enum OperatorAuthMethod {
Password,
PasswordReset,
PasswordAndPasskey,
Passkey,
}Expand description
How an operator session was authenticated (operator_auth_method_enum)
OperatorAuthMethod::PasswordReset is the recovery rule: a session
created by redeeming an emailed reset link counts as having passed the
second factor once, so an operator who lost their passkey can remove it
and enrol another (never under Advanced Protection, where email reset
is off).
Variants§
Password
Email and password on the login page
PasswordReset
A redeemed password-reset link (full account recovery)
PasswordAndPasskey
The password, then a passkey assertion
(OperatorLoginMode::PasswordAndPasskey)
Passkey
A discoverable passkey alone (OperatorLoginMode::Passkey)
Implementations§
Trait Implementations§
Source§impl Clone for OperatorAuthMethod
impl Clone for OperatorAuthMethod
impl Copy for OperatorAuthMethod
Source§impl Debug for OperatorAuthMethod
impl Debug for OperatorAuthMethod
Source§impl<'de> Deserialize<'de> for OperatorAuthMethod
impl<'de> Deserialize<'de> for OperatorAuthMethod
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 Display for OperatorAuthMethod
impl Display for OperatorAuthMethod
impl Eq for OperatorAuthMethod
Source§impl PartialEq for OperatorAuthMethod
impl PartialEq for OperatorAuthMethod
Source§impl Serialize for OperatorAuthMethod
impl Serialize for OperatorAuthMethod
impl StructuralPartialEq for OperatorAuthMethod
Auto Trait Implementations§
impl Freeze for OperatorAuthMethod
impl RefUnwindSafe for OperatorAuthMethod
impl Send for OperatorAuthMethod
impl Sync for OperatorAuthMethod
impl Unpin for OperatorAuthMethod
impl UnsafeUnpin for OperatorAuthMethod
impl UnwindSafe for OperatorAuthMethod
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
fn validate_matches(&self, other: &O) -> bool
impl<T> PendingHandle for Twhere
T: Send + 'static,
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more