pub struct PasswordPolicy {Show 21 fields
pub pk: Uuid,
pub name: String,
pub execution_logging: Option<bool>,
pub component: String,
pub verbose_name: String,
pub verbose_name_plural: String,
pub meta_model_name: String,
pub bound_to: i32,
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
PasswordPolicy : Password Policy Serializer
Fields§
§pk: Uuid
§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.
component: String
Get object component so that we know how to edit the object
verbose_name: String
Return object’s verbose_name
verbose_name_plural: String
Return object’s plural verbose_name
meta_model_name: String
Return internal model name
bound_to: i32
Return objects policy is bound to
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§
Trait Implementations§
Source§impl Clone for PasswordPolicy
impl Clone for PasswordPolicy
Source§fn clone(&self) -> PasswordPolicy
fn clone(&self) -> PasswordPolicy
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 PasswordPolicy
impl Debug for PasswordPolicy
Source§impl Default for PasswordPolicy
impl Default for PasswordPolicy
Source§fn default() -> PasswordPolicy
fn default() -> PasswordPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PasswordPolicy
impl<'de> Deserialize<'de> for PasswordPolicy
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 PasswordPolicy
impl PartialEq for PasswordPolicy
Source§impl Serialize for PasswordPolicy
impl Serialize for PasswordPolicy
impl StructuralPartialEq for PasswordPolicy
Auto Trait Implementations§
impl Freeze for PasswordPolicy
impl RefUnwindSafe for PasswordPolicy
impl Send for PasswordPolicy
impl Sync for PasswordPolicy
impl Unpin for PasswordPolicy
impl UnwindSafe for PasswordPolicy
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