pub struct EmailPasswordOptions {
pub enabled: bool,
pub disable_sign_up: bool,
pub auto_sign_in: bool,
pub require_email_verification: bool,
pub on_existing_user_sign_up: Option<Arc<dyn OnExistingUserSignUp>>,
}Expand description
Email/password authentication configuration.
Fields§
§enabled: bool§disable_sign_up: bool§auto_sign_in: bool§require_email_verification: bool§on_existing_user_sign_up: Option<Arc<dyn OnExistingUserSignUp>>Implementations§
Source§impl EmailPasswordOptions
impl EmailPasswordOptions
pub fn new() -> Self
pub fn builder() -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn disable_sign_up(self, disabled: bool) -> Self
pub fn auto_sign_in(self, enabled: bool) -> Self
pub fn require_email_verification(self, required: bool) -> Self
pub fn on_existing_user_sign_up<H>(self, handler: H) -> Selfwhere
H: OnExistingUserSignUp,
Trait Implementations§
Source§impl Clone for EmailPasswordOptions
impl Clone for EmailPasswordOptions
Source§fn clone(&self) -> EmailPasswordOptions
fn clone(&self) -> EmailPasswordOptions
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 EmailPasswordOptions
impl Debug for EmailPasswordOptions
Auto Trait Implementations§
impl Freeze for EmailPasswordOptions
impl !RefUnwindSafe for EmailPasswordOptions
impl Send for EmailPasswordOptions
impl Sync for EmailPasswordOptions
impl Unpin for EmailPasswordOptions
impl UnsafeUnpin for EmailPasswordOptions
impl !UnwindSafe for EmailPasswordOptions
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