pub struct MagicLinkConfig {
pub expires_in: Duration,
pub disable_sign_up: bool,
pub store_token: TokenStorage,
pub generate_token: Option<MagicLinkTokenGenerator>,
pub send_magic_link: Option<Arc<dyn SendMagicLink>>,
pub rate_limit_window: f64,
pub rate_limit_max: f64,
}Expand description
Magic-link options matching the upstream plugin.
Fields§
§expires_in: DurationVerification lifetime. Zero uses the upstream five-minute default.
disable_sign_up: boolDeny verification for email addresses without an existing user.
store_token: TokenStorageRepresentation stored in the verification table.
generate_token: Option<MagicLinkTokenGenerator>Optional custom token generation.
send_magic_link: Option<Arc<dyn SendMagicLink>>Required application email sender.
rate_limit_window: f64Plugin endpoint limit window in seconds.
rate_limit_max: f64Maximum requests in the limit window.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MagicLinkConfig
impl !UnwindSafe for MagicLinkConfig
impl Freeze for MagicLinkConfig
impl Send for MagicLinkConfig
impl Sync for MagicLinkConfig
impl Unpin for MagicLinkConfig
impl UnsafeUnpin for MagicLinkConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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