pub struct ChangeEmailConfig {
pub enabled: bool,
pub update_without_verification: bool,
pub send_change_email_confirmation: Option<Arc<dyn SendChangeEmailConfirmation>>,
}Expand description
Configuration for the change-email feature.
Fields§
§enabled: boolWhether the change-email endpoints are enabled. Default: false.
update_without_verification: boolIf true, the new email is updated immediately without sending a
verification email. Default: false.
send_change_email_confirmation: Option<Arc<dyn SendChangeEmailConfirmation>>Optional custom callback for sending the confirmation email.
Trait Implementations§
Source§impl Clone for ChangeEmailConfig
impl Clone for ChangeEmailConfig
Source§fn clone(&self) -> ChangeEmailConfig
fn clone(&self) -> ChangeEmailConfig
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 ChangeEmailConfig
impl Debug for ChangeEmailConfig
Source§impl Default for ChangeEmailConfig
impl Default for ChangeEmailConfig
Source§fn default() -> ChangeEmailConfig
fn default() -> ChangeEmailConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChangeEmailConfig
impl !RefUnwindSafe for ChangeEmailConfig
impl Send for ChangeEmailConfig
impl Sync for ChangeEmailConfig
impl Unpin for ChangeEmailConfig
impl UnsafeUnpin for ChangeEmailConfig
impl !UnwindSafe for ChangeEmailConfig
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