Enum passablewords::PasswordError [] [src]

pub enum PasswordError {
    TooShort,
    TooCommon,
    TooSimple,
    InternalError,
}

The suite of possible errors returned from passablewords. These represent the three checks made for length, uniqueness, and entropy. If something goes wrong during the request, an InternalError error is returned.

Variants

The password is less than 8 characters and is therefore too short.

The password is within the list of 1,000,000 most common passwords and should not be used.

The entropy of the password is too low, which means it could be easily guessable/crackable. A more random password should be used instead.

Something went wrong during the password checks and a normal error couldn't be returned.

Trait Implementations

impl Debug for PasswordError
[src]

Formats the value using the given formatter.

impl PartialEq for PasswordError
[src]

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

This method tests for !=.