pub struct EmailOtpOptions {
pub sender: Option<Arc<dyn SendEmailOtp>>,
pub generator: Option<Arc<dyn EmailOtpGenerator>>,
pub otp_length: usize,
pub expires_in: u64,
pub send_verification_on_sign_up: bool,
pub override_default_email_verification: bool,
pub disable_sign_up: bool,
pub allowed_attempts: u32,
pub store_otp: OtpStorage,
pub resend_strategy: ResendStrategy,
pub change_email: ChangeEmailOptions,
pub rate_limit: Option<RateLimitRule>,
}Fields§
§sender: Option<Arc<dyn SendEmailOtp>>§generator: Option<Arc<dyn EmailOtpGenerator>>§otp_length: usize§expires_in: u64§send_verification_on_sign_up: bool§override_default_email_verification: bool§disable_sign_up: bool§allowed_attempts: u32§store_otp: OtpStorage§resend_strategy: ResendStrategy§change_email: ChangeEmailOptions§rate_limit: Option<RateLimitRule>Trait Implementations§
Source§impl Clone for EmailOtpOptions
impl Clone for EmailOtpOptions
Source§fn clone(&self) -> EmailOtpOptions
fn clone(&self) -> EmailOtpOptions
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 moreSource§impl Debug for EmailOtpOptions
impl Debug for EmailOtpOptions
Auto Trait Implementations§
impl Freeze for EmailOtpOptions
impl !RefUnwindSafe for EmailOtpOptions
impl Send for EmailOtpOptions
impl Sync for EmailOtpOptions
impl Unpin for EmailOtpOptions
impl UnsafeUnpin for EmailOtpOptions
impl !UnwindSafe for EmailOtpOptions
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