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§
Source§impl Clone for PasswordRules
impl Clone for PasswordRules
Source§fn clone(&self) -> PasswordRules
fn clone(&self) -> PasswordRules
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 PasswordRules
impl Debug for PasswordRules
Source§impl Default for PasswordRules
impl Default for PasswordRules
Source§fn default() -> PasswordRules
fn default() -> PasswordRules
Returns the “default value” for a type. Read more
Source§impl PartialEq for PasswordRules
impl PartialEq for PasswordRules
impl Eq for PasswordRules
impl StructuralPartialEq for PasswordRules
Auto Trait Implementations§
impl Freeze for PasswordRules
impl RefUnwindSafe for PasswordRules
impl Send for PasswordRules
impl Sync for PasswordRules
impl Unpin for PasswordRules
impl UnwindSafe for PasswordRules
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