#[non_exhaustive]pub enum AuthLetterKind {
PasswordReset,
EmailVerification,
EmailChange,
EmailChangeCancel,
TwoFactorCode,
TwoFactorAlert,
}Expand description
What an AuthLetter is for.
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.
PasswordReset
A link that sets a new password, from
Auth::password_reset.
EmailVerification
A link that proves the account reads its address, from
Auth::email_verification.
EmailChange
A link to a new address that makes it the account’s.
EmailChangeCancel
A link to the old address that cancels a pending email change.
TwoFactorCode
A six-digit code that signs in as a second factor, or sets the factor up.
TwoFactorAlert
A notice that the password signed in and second-factor codes failed after it. It carries no link or code.
Trait Implementations§
Source§impl Clone for AuthLetterKind
impl Clone for AuthLetterKind
impl Copy for AuthLetterKind
Source§impl Debug for AuthLetterKind
impl Debug for AuthLetterKind
Source§impl<'de> Deserialize<'de> for AuthLetterKind
impl<'de> Deserialize<'de> for AuthLetterKind
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 AuthLetterKind
Source§impl Hash for AuthLetterKind
impl Hash for AuthLetterKind
Source§impl PartialEq for AuthLetterKind
impl PartialEq for AuthLetterKind
Source§impl Serialize for AuthLetterKind
impl Serialize for AuthLetterKind
impl StructuralPartialEq for AuthLetterKind
Auto Trait Implementations§
impl Freeze for AuthLetterKind
impl RefUnwindSafe for AuthLetterKind
impl Send for AuthLetterKind
impl Sync for AuthLetterKind
impl Unpin for AuthLetterKind
impl UnsafeUnpin for AuthLetterKind
impl UnwindSafe for AuthLetterKind
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<T> Assign<Json<T>> for Twhere
T: Serialize,
impl<T> Assign<Json<T>> for Twhere
T: Serialize,
§fn into_assignment(self) -> Assignment<Json<T>>
fn into_assignment(self) -> Assignment<Json<T>>
Convert into an [
Assignment<T>] value.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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.