[][src]Enum passablewords::PasswordError

pub enum PasswordError {
    TooShort,
    TooCommon,
    TooSimple,
    NonAsciiPassword,
    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

TooShort

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

TooCommon

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

TooSimple

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

NonAsciiPassword

The password isn't using ascii characters, a requirement that zxcvbn has

InternalError

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

Trait Implementations

impl PartialEq<PasswordError> for PasswordError[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Debug for PasswordError[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.