[][src]Struct password_rules_parser::PasswordRules

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>>,
}

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

impl Clone for PasswordRules[src]

impl Debug for PasswordRules[src]

impl Default for PasswordRules[src]

impl Eq for PasswordRules[src]

impl PartialEq<PasswordRules> for PasswordRules[src]

impl StructuralEq for PasswordRules[src]

impl StructuralPartialEq for PasswordRules[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.