pub struct DeleteUserConfig {
pub enabled: bool,
pub delete_token_expires_in: TimeDelta,
pub require_verification: bool,
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: TimeDeltaHow long a delete-confirmation token remains valid. Default: 1 day.
require_verification: boolIf true, a verification email must be confirmed before the account is
deleted. Default: true.
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§fn clone(&self) -> DeleteUserConfig
fn clone(&self) -> DeleteUserConfig
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 DeleteUserConfig
impl Debug for DeleteUserConfig
Source§impl Default for DeleteUserConfig
impl Default for DeleteUserConfig
Source§fn default() -> DeleteUserConfig
fn default() -> DeleteUserConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeleteUserConfig
impl !RefUnwindSafe for DeleteUserConfig
impl Send for DeleteUserConfig
impl Sync for DeleteUserConfig
impl Unpin for DeleteUserConfig
impl UnsafeUnpin for DeleteUserConfig
impl !UnwindSafe for DeleteUserConfig
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