pub struct PasswordCheck {
pub ok: bool,
pub needs_rehash: bool,
}Expand description
The answer of [verify_password]: whether the candidate matches, and whether the stored hash was
made with other parameters than the handle’s current ones (so a successful login is a good
moment to write the password again).
Fields§
§ok: bool§needs_rehash: boolTrait Implementations§
Source§impl Clone for PasswordCheck
impl Clone for PasswordCheck
impl Copy for PasswordCheck
Source§impl Debug for PasswordCheck
impl Debug for PasswordCheck
impl Eq for PasswordCheck
Source§impl PartialEq for PasswordCheck
impl PartialEq for PasswordCheck
impl StructuralPartialEq for PasswordCheck
Auto Trait Implementations§
impl Freeze for PasswordCheck
impl RefUnwindSafe for PasswordCheck
impl Send for PasswordCheck
impl Sync for PasswordCheck
impl Unpin for PasswordCheck
impl UnsafeUnpin for PasswordCheck
impl UnwindSafe for PasswordCheck
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.