pub struct DeleteUserConfig {
pub enabled: bool,
pub delete_token_expires_in: Duration,
pub send_delete_account_verification: Option<Arc<dyn SendDeleteAccountVerification>>,
pub before_delete: Option<Arc<dyn BeforeDeleteUser>>,
pub after_delete: Option<Arc<dyn AfterDeleteUser>>,
}Expand description
Configuration for the delete-user feature.
Fields§
§enabled: boolWhether the delete-user endpoints are enabled. Default: false.
delete_token_expires_in: DurationHow long a delete-confirmation token remains valid. Default: 1 day.
send_delete_account_verification: Option<Arc<dyn SendDeleteAccountVerification>>Send confirmation instead of immediately deleting the account.
before_delete: Option<Arc<dyn BeforeDeleteUser>>Hook called before the user record is removed.
after_delete: Option<Arc<dyn AfterDeleteUser>>Hook called after the user record has been removed.
Trait Implementations§
Source§impl Clone for DeleteUserConfig
impl Clone for DeleteUserConfig
Source§impl Debug for DeleteUserConfig
impl Debug for DeleteUserConfig
Auto Trait Implementations§
impl !RefUnwindSafe for DeleteUserConfig
impl !UnwindSafe for DeleteUserConfig
impl Freeze for DeleteUserConfig
impl Send for DeleteUserConfig
impl Sync for DeleteUserConfig
impl Unpin for DeleteUserConfig
impl UnsafeUnpin for DeleteUserConfig
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