pub struct UserOptions {
pub ignore_change_password_upon_first_use: Option<bool>,
pub ignore_password_expiry: Option<bool>,
pub ignore_lockout_failure_attempts: Option<bool>,
pub lock_password: Option<bool>,
pub ignore_user_inactivity: Option<bool>,
pub multi_factor_auth_rules: Option<Vec<Vec<String>>>,
pub multi_factor_auth_enabled: Option<bool>,
}Expand description
User options.
Fields§
§ignore_change_password_upon_first_use: Option<bool>§ignore_password_expiry: Option<bool>§ignore_lockout_failure_attempts: Option<bool>§lock_password: Option<bool>§ignore_user_inactivity: Option<bool>§multi_factor_auth_rules: Option<Vec<Vec<String>>>§multi_factor_auth_enabled: Option<bool>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 · 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
Source§impl<'de> Deserialize<'de> for UserOptions
impl<'de> Deserialize<'de> for UserOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<UserOptions> for UserOptions
impl From<UserOptions> for UserOptions
Source§fn from(value: UserOptions) -> Self
fn from(value: UserOptions) -> Self
Converts to this type from the input type.
Source§impl From<UserOptions> for UserOptions
impl From<UserOptions> for UserOptions
Source§fn from(value: UserOptions) -> Self
fn from(value: UserOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UserOptions
impl PartialEq for UserOptions
Source§impl Serialize for UserOptions
impl Serialize for UserOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ToSchema for UserOptions
impl ToSchema for UserOptions
Source§impl Validate for UserOptions
impl Validate for UserOptions
Source§impl<'v_a> ValidateArgs<'v_a> for UserOptions
impl<'v_a> ValidateArgs<'v_a> for UserOptions
type Args = ()
fn validate_with_args( &self, args: <UserOptions as ValidateArgs<'v_a>>::Args, ) -> Result<(), ValidationErrors>
impl StructuralPartialEq for UserOptions
Auto Trait Implementations§
impl Freeze for UserOptions
impl RefUnwindSafe for UserOptions
impl Send for UserOptions
impl Sync for UserOptions
impl Unpin for UserOptions
impl UnsafeUnpin for UserOptions
impl UnwindSafe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more