pub struct MagicCode {
pub email: String,
pub code: String,
pub expires_at: u64,
pub attempts: u32,
}Fields§
§email: String§code: String§expires_at: u64§attempts: u32Failed verify attempts against this code. Once it reaches
MAX_ATTEMPTS the code is invalidated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MagicCode
impl RefUnwindSafe for MagicCode
impl Send for MagicCode
impl Sync for MagicCode
impl Unpin for MagicCode
impl UnsafeUnpin for MagicCode
impl UnwindSafe for MagicCode
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