pub struct ChangeEmailConfig {
pub enabled: Option<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: Option<bool>Whether the change-email endpoints are enabled. Omission uses false.
update_without_verification: boolUpdate an unverified user’s email immediately. A configured verification sender still sends to the new address after session-cookie issuance.
send_change_email_confirmation: Option<Arc<dyn SendChangeEmailConfirmation>>Optional custom callback for sending the confirmation email.
Implementations§
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