pub struct MagicLinkIssued {
pub id: String,
pub email: String,
pub purpose: String,
pub code: String,
pub expires_at: String,
}Expand description
Result returned when a new one-time magic link code is issued.
Fields§
§id: StringPrefixed magic-link record identifier (mlk_...).
email: StringNormalized lowercase email address the code was issued for.
purpose: StringApplication-defined purpose for the magic link (e.g. "sign_in").
code: StringPlaintext one-time verification code to deliver to the user.
expires_at: StringRFC 3339 timestamp when the code expires.
Trait Implementations§
Source§impl Clone for MagicLinkIssued
impl Clone for MagicLinkIssued
Source§impl Debug for MagicLinkIssued
impl Debug for MagicLinkIssued
Source§impl<'de> Deserialize<'de> for MagicLinkIssued
impl<'de> Deserialize<'de> for MagicLinkIssued
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
Auto Trait Implementations§
impl Forget for MagicLinkIssued
impl Freeze for MagicLinkIssued
impl Move for MagicLinkIssued
impl RefUnwindSafe for MagicLinkIssued
impl Send for MagicLinkIssuedwhere
RawVecInner: Send,
impl Sync for MagicLinkIssuedwhere
RawVecInner: Sync,
impl Unpin for MagicLinkIssued
impl UnsafeUnpin for MagicLinkIssued
impl UnwindSafe for MagicLinkIssuedwhere
RawVecInner: UnwindSafe,
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more