pub struct MagicLinkOptions { /* private fields */ }Implementations§
Source§impl MagicLinkOptions
impl MagicLinkOptions
pub fn new<F>(send_magic_link: F) -> Self
pub fn new_with_context<F>(send_magic_link: F) -> Selfwhere
F: for<'a> Fn(MagicLinkEmail, MagicLinkSendContext<'a>) -> MagicLinkFuture<'a, ()> + Send + Sync + 'static,
pub fn expires_in(self, seconds: u64) -> Self
pub fn allowed_attempts(self, attempts: u64) -> Self
pub fn unlimited_attempts(self) -> Self
pub fn disable_sign_up(self, disabled: bool) -> Self
pub fn rate_limit(self, rate_limit: MagicLinkRateLimit) -> Self
pub fn generate_token<F>(self, generate_token: F) -> Self
pub fn store_token(self, store_token: TokenStorage) -> Self
Trait Implementations§
Source§impl Clone for MagicLinkOptions
impl Clone for MagicLinkOptions
Source§fn clone(&self) -> MagicLinkOptions
fn clone(&self) -> MagicLinkOptions
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 MagicLinkOptions
impl !RefUnwindSafe for MagicLinkOptions
impl Send for MagicLinkOptions
impl Sync for MagicLinkOptions
impl Unpin for MagicLinkOptions
impl UnsafeUnpin for MagicLinkOptions
impl !UnwindSafe for MagicLinkOptions
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