[−][src]Struct zxcvbn::Entropy
Contains the results of an entropy calculation
Fields
guesses: u64
Estimated guesses needed to crack the password
guesses_log10: f64
Order of magnitude of guesses
crack_times_seconds: CrackTimes
List of back-of-the-envelope crack time estimations, in seconds, based on a few scenarios
crack_times_display: CrackTimesDisplay
Same keys as crack_time_seconds
, with human-readable display values,
e.g. "less than a second", "3 hours", "centuries", etc.
score: u8
Overall strength score from 0-4. Any score less than 3 should be considered too weak.
feedback: Option<Feedback>
Verbal feedback to help choose better passwords. Set when score
<= 2.
sequence: Vec<Match>
The list of patterns the guess calculation was based on
calc_time: u64
How long it took to calculate the answer, in milliseconds
Trait Implementations
impl Clone for Entropy
[src]
fn clone(&self) -> Entropy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Entropy
[src]
Auto Trait Implementations
impl Sync for Entropy
impl Unpin for Entropy
impl Send for Entropy
impl UnwindSafe for Entropy
impl RefUnwindSafe for Entropy
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,