pub struct ChangeEmailOptions {
pub enabled: bool,
pub update_email_without_verification: bool,
pub send_change_email_confirmation: Option<Arc<dyn SendChangeEmailConfirmation>>,
}Expand description
Email change behavior.
Fields§
§enabled: bool§update_email_without_verification: bool§send_change_email_confirmation: Option<Arc<dyn SendChangeEmailConfirmation>>Implementations§
Source§impl ChangeEmailOptions
impl ChangeEmailOptions
pub fn new() -> Self
pub fn builder() -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn update_email_without_verification(self, enabled: bool) -> Self
pub fn send_change_email_confirmation<S>(self, sender: S) -> Selfwhere
S: SendChangeEmailConfirmation,
Trait Implementations§
Source§impl Clone for ChangeEmailOptions
impl Clone for ChangeEmailOptions
Source§fn clone(&self) -> ChangeEmailOptions
fn clone(&self) -> ChangeEmailOptions
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 ChangeEmailOptions
impl Debug for ChangeEmailOptions
Source§impl Default for ChangeEmailOptions
impl Default for ChangeEmailOptions
Source§fn default() -> ChangeEmailOptions
fn default() -> ChangeEmailOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ChangeEmailOptions
impl !UnwindSafe for ChangeEmailOptions
impl Freeze for ChangeEmailOptions
impl Send for ChangeEmailOptions
impl Sync for ChangeEmailOptions
impl Unpin for ChangeEmailOptions
impl UnsafeUnpin for ChangeEmailOptions
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