pub struct EmailVerificationOptions {
pub send_verification_email: Option<Arc<dyn SendVerificationEmail>>,
pub before_email_verification: Option<Arc<dyn BeforeEmailVerification>>,
pub after_email_verification: Option<Arc<dyn AfterEmailVerification>>,
pub expires_in: Option<u64>,
pub auto_sign_in_after_verification: bool,
}Expand description
Email verification configuration.
Fields§
§send_verification_email: Option<Arc<dyn SendVerificationEmail>>§before_email_verification: Option<Arc<dyn BeforeEmailVerification>>§after_email_verification: Option<Arc<dyn AfterEmailVerification>>§expires_in: Option<u64>§auto_sign_in_after_verification: boolImplementations§
Source§impl EmailVerificationOptions
impl EmailVerificationOptions
pub fn new() -> Self
pub fn builder() -> Self
pub fn send_verification_email<S>(self, sender: S) -> Selfwhere
S: SendVerificationEmail,
pub fn before_email_verification<B>(self, callback: B) -> Selfwhere
B: BeforeEmailVerification,
pub fn after_email_verification<A>(self, callback: A) -> Selfwhere
A: AfterEmailVerification,
pub fn expires_in(self, expires_in: u64) -> Self
pub fn auto_sign_in_after_verification(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for EmailVerificationOptions
impl Clone for EmailVerificationOptions
Source§fn clone(&self) -> EmailVerificationOptions
fn clone(&self) -> EmailVerificationOptions
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 EmailVerificationOptions
impl Debug for EmailVerificationOptions
Source§impl Default for EmailVerificationOptions
impl Default for EmailVerificationOptions
Source§fn default() -> EmailVerificationOptions
fn default() -> EmailVerificationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmailVerificationOptions
impl !RefUnwindSafe for EmailVerificationOptions
impl Send for EmailVerificationOptions
impl Sync for EmailVerificationOptions
impl Unpin for EmailVerificationOptions
impl UnsafeUnpin for EmailVerificationOptions
impl !UnwindSafe for EmailVerificationOptions
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