Struct passwords::PasswordGenerator[][src]

pub struct PasswordGenerator {
    pub length: usize,
    pub numbers: bool,
    pub lowercase_letters: bool,
    pub uppercase_letters: bool,
    pub symbols: bool,
    pub strict: bool,
}

This struct can help you generate passwords.

Fields

The length of the generated passwords.

Passwords are allowed to, or must if the strict is true, contain a number or numbers. Numbers are 123456789. (0 is excluded)

Passwords are allowed to, or must if the strict is true, contain a lowercase letter or lowercase letters. Lowercase letters are abcdefghjkmnpqrstuvwxyz. (i, l, o are excluded)

Passwords are allowed to, or must if the strict is true, contain an uppercase letter or uppercase letters. Uppercase letters are ABCDEFGHJKMNPQRSTUVWXYZ. (I, L, O are excluded)

Passwords are allowed to, or must if the strict is true, contain a symbol or symbols. Symbols are !@#$%^&*()+_-=}{[]:;"/?.><,~.

Whether the password rules are strict.

Methods

impl PasswordGenerator
[src]

Generate random passwords.

Generate a random password.

Trait Implementations

impl Debug for PasswordGenerator
[src]

Formats the value using the given formatter. Read more

impl Clone for PasswordGenerator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for PasswordGenerator
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations