pub struct UserOptions {
pub schema: ModelSchemaOptions,
pub change_email: ChangeEmailOptions,
pub delete_user: DeleteUserOptions,
pub additional_fields: BTreeMap<String, UserAdditionalField>,
}Expand description
User lifecycle configuration.
Fields§
§schema: ModelSchemaOptions§change_email: ChangeEmailOptions§delete_user: DeleteUserOptions§additional_fields: BTreeMap<String, UserAdditionalField>Implementations§
Source§impl UserOptions
impl UserOptions
pub fn new() -> Self
pub fn builder() -> Self
pub fn schema(self, schema: ModelSchemaOptions) -> Self
pub fn change_email(self, change_email: ChangeEmailOptions) -> Self
pub fn delete_user(self, delete_user: DeleteUserOptions) -> Self
pub fn additional_field( self, name: impl Into<String>, field: UserAdditionalField, ) -> Self
Trait Implementations§
Source§impl Clone for UserOptions
impl Clone for UserOptions
Source§fn clone(&self) -> UserOptions
fn clone(&self) -> UserOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UserOptions
impl Debug for UserOptions
Source§impl Default for UserOptions
impl Default for UserOptions
Source§fn default() -> UserOptions
fn default() -> UserOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for UserOptions
impl !UnwindSafe for UserOptions
impl Freeze for UserOptions
impl Send for UserOptions
impl Sync for UserOptions
impl Unpin for UserOptions
impl UnsafeUnpin for UserOptions
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