[][src]Struct zxcvbn::matching::patterns::DictionaryPattern

pub struct DictionaryPattern {
    pub matched_word: String,
    pub rank: usize,
    pub dictionary_name: DictionaryType,
    pub reversed: bool,
    pub l33t: bool,
    pub sub: Option<HashMap<char, char>>,
    pub sub_display: Option<String>,
    pub uppercase_variations: u64,
    pub l33t_variations: u64,
    pub base_guesses: u64,
}

A match based on a word in a dictionary

Fields

matched_word: String

Word that has been found in a dictionary.

rank: usize

Rank of the the word found in a dictionary.

dictionary_name: DictionaryType

Name of the dictionary in which a word has been found.

reversed: bool

Whether a reversed word has been found in a dictionary.

l33t: bool

Whether a l33t-substituted word has been found in a dictionary.

sub: Option<HashMap<char, char>>

Substitutions used for the match.

sub_display: Option<String>

String for displaying the substitutions used for the match.

uppercase_variations: u64

Number of variations of the matched dictionary word.

l33t_variations: u64

Number of variations of the matched dictionary word.

base_guesses: u64

Estimated number of tries for guessing the dictionary word.

Trait Implementations

impl Clone for DictionaryPattern[src]

impl Default for DictionaryPattern[src]

impl PartialEq<DictionaryPattern> for DictionaryPattern[src]

impl Debug for DictionaryPattern[src]

impl StructuralPartialEq for DictionaryPattern[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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