pub struct EmailConfig {
pub send_verification_on_signup: bool,
pub require_verification_to_login: bool,
pub auto_sign_in_after_signup: bool,
pub auto_sign_in_after_verification: bool,
}Expand description
Email behavior configuration.
Fields§
§send_verification_on_signup: boolWhether to send a verification email on signup. Default: true.
require_verification_to_login: boolWhether to require email verification before allowing login. Default: false.
auto_sign_in_after_signup: boolWhether to automatically sign in the user after signup. Default: true.
auto_sign_in_after_verification: boolWhether to automatically sign in the user after email verification. Default: false.
Trait Implementations§
Source§impl Clone for EmailConfig
impl Clone for EmailConfig
Source§fn clone(&self) -> EmailConfig
fn clone(&self) -> EmailConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 EmailConfig
impl Debug for EmailConfig
Auto Trait Implementations§
impl Freeze for EmailConfig
impl RefUnwindSafe for EmailConfig
impl Send for EmailConfig
impl Sync for EmailConfig
impl Unpin for EmailConfig
impl UnsafeUnpin for EmailConfig
impl UnwindSafe for EmailConfig
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