pub enum TokenKind {
PasswordReset,
EmailChange,
MagicLink,
}Variants§
PasswordReset
/api/auth/password/reset/request → /complete. email
identifies the account; user_id is None at mint time
(the user isn’t logged in).
EmailChange
/api/auth/email/change/request → /confirm. user_id is
the currently-logged-in user; payload carries the new
email address; email is the new email (delivery target).
MagicLink
/api/auth/magic-link/send → /verify. email identifies
the account; user_id is None until verify creates/looks
up the user.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TokenKind
impl<'de> Deserialize<'de> for TokenKind
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 Copy for TokenKind
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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