pub struct EmailPasswordConfig {
pub enable_signup: bool,
pub require_email_verification: bool,
pub password_min_length: usize,
pub password_max_length: usize,
pub auto_sign_in: bool,
pub password_hasher: Option<Arc<dyn PasswordHasher>>,
}Fields§
§enable_signup: bool§require_email_verification: bool§password_min_length: usize§password_max_length: usizeMaximum password length (default: 128).
auto_sign_in: boolWhether to automatically sign in the user after sign-up (default: true). When false, sign-up returns the user but doesn’t create a session.
password_hasher: Option<Arc<dyn PasswordHasher>>Custom password hasher. When None, the default Argon2 hasher is used.
Trait Implementations§
Source§impl Clone for EmailPasswordConfig
impl Clone for EmailPasswordConfig
Source§fn clone(&self) -> EmailPasswordConfig
fn clone(&self) -> EmailPasswordConfig
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 EmailPasswordConfig
impl Debug for EmailPasswordConfig
Source§impl Default for EmailPasswordConfig
impl Default for EmailPasswordConfig
Source§fn default() -> EmailPasswordConfig
fn default() -> EmailPasswordConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmailPasswordConfig
impl !RefUnwindSafe for EmailPasswordConfig
impl Send for EmailPasswordConfig
impl Sync for EmailPasswordConfig
impl Unpin for EmailPasswordConfig
impl UnsafeUnpin for EmailPasswordConfig
impl !UnwindSafe for EmailPasswordConfig
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