pub struct ResetTokenGenerator {
pub ttl: Duration,
}Expand description
Generates short-lived opaque reset tokens (random bytes, base64-URL encoded).
Fields§
§ttl: DurationHow long the generated token is valid.
Implementations§
Trait Implementations§
Source§impl Clone for ResetTokenGenerator
impl Clone for ResetTokenGenerator
Source§fn clone(&self) -> ResetTokenGenerator
fn clone(&self) -> ResetTokenGenerator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResetTokenGenerator
impl RefUnwindSafe for ResetTokenGenerator
impl Send for ResetTokenGenerator
impl Sync for ResetTokenGenerator
impl Unpin for ResetTokenGenerator
impl UnsafeUnpin for ResetTokenGenerator
impl UnwindSafe for ResetTokenGenerator
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