pub struct Feedback { /* private fields */ }
Expand description
Verbal feedback to help choose better passwords
Implementations
sourceimpl Feedback
impl Feedback
sourcepub fn warning(&self) -> Option<Warning>
pub fn warning(&self) -> Option<Warning>
Explains what’s wrong, e.g. “This is a top-10 common password”. Not always set.
sourcepub fn suggestions(&self) -> &[Suggestion]
pub fn suggestions(&self) -> &[Suggestion]
A possibly-empty list of suggestions to help choose a less guessable password. E.g. “Add another word or two”.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Feedback
impl Send for Feedback
impl Sync for Feedback
impl Unpin for Feedback
impl UnwindSafe for Feedback
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more