pub struct PasswordPolicyRequest {Show 15 fields
pub name: String,
pub execution_logging: Option<bool>,
pub password_field: Option<String>,
pub amount_digits: Option<i32>,
pub amount_uppercase: Option<i32>,
pub amount_lowercase: Option<i32>,
pub amount_symbols: Option<i32>,
pub length_min: Option<i32>,
pub symbol_charset: Option<String>,
pub error_message: Option<String>,
pub check_static_rules: Option<bool>,
pub check_have_i_been_pwned: Option<bool>,
pub check_zxcvbn: Option<bool>,
pub hibp_allowed_count: Option<i32>,
pub zxcvbn_score_threshold: Option<i32>,
}
Expand description
PasswordPolicyRequest : Password Policy Serializer
Fields§
§name: String
§execution_logging: Option<bool>
When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
password_field: Option<String>
Field key to check, field keys defined in Prompt stages are available.
amount_digits: Option<i32>
§amount_uppercase: Option<i32>
§amount_lowercase: Option<i32>
§amount_symbols: Option<i32>
§length_min: Option<i32>
§symbol_charset: Option<String>
§error_message: Option<String>
§check_static_rules: Option<bool>
§check_have_i_been_pwned: Option<bool>
§check_zxcvbn: Option<bool>
§hibp_allowed_count: Option<i32>
How many times the password hash is allowed to be on haveibeenpwned
zxcvbn_score_threshold: Option<i32>
If the zxcvbn score is equal or less than this value, the policy will fail.
Implementations§
Source§impl PasswordPolicyRequest
impl PasswordPolicyRequest
Sourcepub fn new(name: String) -> PasswordPolicyRequest
pub fn new(name: String) -> PasswordPolicyRequest
Password Policy Serializer
Trait Implementations§
Source§impl Clone for PasswordPolicyRequest
impl Clone for PasswordPolicyRequest
Source§fn clone(&self) -> PasswordPolicyRequest
fn clone(&self) -> PasswordPolicyRequest
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 PasswordPolicyRequest
impl Debug for PasswordPolicyRequest
Source§impl Default for PasswordPolicyRequest
impl Default for PasswordPolicyRequest
Source§fn default() -> PasswordPolicyRequest
fn default() -> PasswordPolicyRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PasswordPolicyRequest
impl<'de> Deserialize<'de> for PasswordPolicyRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PasswordPolicyRequest
impl PartialEq for PasswordPolicyRequest
Source§impl Serialize for PasswordPolicyRequest
impl Serialize for PasswordPolicyRequest
impl StructuralPartialEq for PasswordPolicyRequest
Auto Trait Implementations§
impl Freeze for PasswordPolicyRequest
impl RefUnwindSafe for PasswordPolicyRequest
impl Send for PasswordPolicyRequest
impl Sync for PasswordPolicyRequest
impl Unpin for PasswordPolicyRequest
impl UnwindSafe for PasswordPolicyRequest
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