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§impl Debug for ChangeEmailConfig
impl Debug for ChangeEmailConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ChangeEmailConfig
impl !UnwindSafe for ChangeEmailConfig
impl Freeze for ChangeEmailConfig
impl Send for ChangeEmailConfig
impl Sync for ChangeEmailConfig
impl Unpin for ChangeEmailConfig
impl UnsafeUnpin for ChangeEmailConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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