pub struct PasswordHashVerification {
pub is_valid: bool,
pub needs_rehash: bool,
}Expand description
Detailed result of password verification.
Fields§
§is_valid: boolWhether the password matched the stored hash.
needs_rehash: boolWhether a matching password should be hashed again with the current work factor.
Trait Implementations§
Source§impl Clone for PasswordHashVerification
impl Clone for PasswordHashVerification
Source§fn clone(&self) -> PasswordHashVerification
fn clone(&self) -> PasswordHashVerification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PasswordHashVerification
impl Debug for PasswordHashVerification
Source§impl PartialEq for PasswordHashVerification
impl PartialEq for PasswordHashVerification
impl Copy for PasswordHashVerification
impl Eq for PasswordHashVerification
impl StructuralPartialEq for PasswordHashVerification
Auto Trait Implementations§
impl Freeze for PasswordHashVerification
impl RefUnwindSafe for PasswordHashVerification
impl Send for PasswordHashVerification
impl Sync for PasswordHashVerification
impl Unpin for PasswordHashVerification
impl UnwindSafe for PasswordHashVerification
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