pub struct PasswordRequirements {
pub password_expiration_timeout: Option<String>,
pub maximum_failed_passwords_for_wipe: Option<i32>,
pub password_history_length: Option<i32>,
pub password_minimum_symbols: Option<i32>,
pub password_quality: Option<String>,
pub password_minimum_length: Option<i32>,
pub password_minimum_numeric: Option<i32>,
pub password_minimum_non_letter: Option<i32>,
pub password_minimum_upper_case: Option<i32>,
pub password_minimum_lower_case: Option<i32>,
pub password_minimum_letters: Option<i32>,
}Expand description
Requirements for the password used to unlock a device.
This type is not used in any activity, and only used as part of another schema.
Fields§
§password_expiration_timeout: Option<String>Password expiration timeout.
maximum_failed_passwords_for_wipe: Option<i32>A device will be wiped after too many incorrect device-unlock passwords have been entered. A value of 0 means there is no restriction.
password_history_length: Option<i32>The length of the password history. After setting this, the user will not be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction.
password_minimum_symbols: Option<i32>Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX.
password_quality: Option<String>The required password quality.
password_minimum_length: Option<i32>The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX.
password_minimum_numeric: Option<i32>Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX.
password_minimum_non_letter: Option<i32>Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX.
password_minimum_upper_case: Option<i32>Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX.
password_minimum_lower_case: Option<i32>Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX.
password_minimum_letters: Option<i32>Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX.
Trait Implementations§
source§impl Clone for PasswordRequirements
impl Clone for PasswordRequirements
source§fn clone(&self) -> PasswordRequirements
fn clone(&self) -> PasswordRequirements
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PasswordRequirements
impl Debug for PasswordRequirements
source§impl Default for PasswordRequirements
impl Default for PasswordRequirements
source§fn default() -> PasswordRequirements
fn default() -> PasswordRequirements
source§impl<'de> Deserialize<'de> for PasswordRequirements
impl<'de> Deserialize<'de> for PasswordRequirements
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for PasswordRequirements
impl Serialize for PasswordRequirements
impl Part for PasswordRequirements
Auto Trait Implementations§
impl Freeze for PasswordRequirements
impl RefUnwindSafe for PasswordRequirements
impl Send for PasswordRequirements
impl Sync for PasswordRequirements
impl Unpin for PasswordRequirements
impl UnwindSafe for PasswordRequirements
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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