Struct password_rules_parser::PasswordRules [−][src]
pub struct PasswordRules {
pub max_consecutive: Option<u32>,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub allowed: Vec<CharacterClass>,
pub required: Vec<Vec<CharacterClass>>,
}
Expand description
The various parsed password rules
Fields
max_consecutive: Option<u32>
The maximum length of consecutive characters in your password
min_length: Option<u32>
The minimum length of the password
max_length: Option<u32>
The maximum length of the password
allowed: Vec<CharacterClass>
A subset of allowed characters based on a set of CharacterClass
required: Vec<Vec<CharacterClass>>
Restrictions that all passwords must follow based on a set of CharacterClass
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PasswordRules
impl Send for PasswordRules
impl Sync for PasswordRules
impl Unpin for PasswordRules
impl UnwindSafe for PasswordRules
Blanket Implementations
Mutably borrows from an owned value. Read more