pub struct MagicAuth {
pub id: MagicAuthId,
pub user_id: UserId,
pub email: String,
pub expires_at: Timestamp,
pub code: MagicAuthCode,
pub timestamps: Timestamps,
}
Expand description
Fields§
§id: MagicAuthId
The unique ID of the Magic Auth code.
user_id: UserId
The unique ID of the user.
email: String
The email address of the user.
expires_at: Timestamp
The timestamp indicating when the Magic Auth code expires.
code: MagicAuthCode
The one-time code that was emailed to the user.
timestamps: Timestamps
The timestamps for the user.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MagicAuth
impl<'de> Deserialize<'de> for MagicAuth
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 Freeze for MagicAuth
impl RefUnwindSafe for MagicAuth
impl Send for MagicAuth
impl Sync for MagicAuth
impl Unpin for MagicAuth
impl UnwindSafe for MagicAuth
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