pub struct PasswordHasher {
pub algorithm: HashAlgorithm,
}Expand description
Hashes and verifies passwords.
Fields§
§algorithm: HashAlgorithmHashing algorithm to use.
Implementations§
Source§impl PasswordHasher
impl PasswordHasher
Sourcepub const fn new(algorithm: HashAlgorithm) -> Self
pub const fn new(algorithm: HashAlgorithm) -> Self
Create a new PasswordHasher with the given algorithm.
Trait Implementations§
Source§impl Clone for PasswordHasher
impl Clone for PasswordHasher
Source§fn clone(&self) -> PasswordHasher
fn clone(&self) -> PasswordHasher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PasswordHasher
impl Debug for PasswordHasher
Source§impl Default for PasswordHasher
impl Default for PasswordHasher
Source§fn default() -> PasswordHasher
fn default() -> PasswordHasher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PasswordHasher
impl RefUnwindSafe for PasswordHasher
impl Send for PasswordHasher
impl Sync for PasswordHasher
impl Unpin for PasswordHasher
impl UnsafeUnpin for PasswordHasher
impl UnwindSafe for PasswordHasher
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