pub struct ArgonHash { /* private fields */ }Expand description
A basic data type representing an Argon2id password hash. It is used to ensure passing around valid data within the library. This might someday be genericized, but for now it’s fine.
Implementations§
Source§impl ArgonHash
impl ArgonHash
Sourcepub fn from_hashstr(passhash: &str) -> ArgonHash
pub fn from_hashstr(passhash: &str) -> ArgonHash
Creates an ArgonHash object from a verified string
Sourcepub fn get_hashtype(&self) -> &str
pub fn get_hashtype(&self) -> &str
Returns the object’s hash type
Trait Implementations§
Source§impl PartialOrd for ArgonHash
impl PartialOrd for ArgonHash
impl StructuralPartialEq for ArgonHash
Auto Trait Implementations§
impl Freeze for ArgonHash
impl RefUnwindSafe for ArgonHash
impl Send for ArgonHash
impl Sync for ArgonHash
impl Unpin for ArgonHash
impl UnwindSafe for ArgonHash
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