pub struct PasswordHashString { /* private fields */ }๐Deprecated since 0.3.0: Use
PasswordHash or String insteadAvailable on crate feature
alloc only.Expand description
DEPRECATED: serialized PasswordHash.
This type contains a serialized password hash string which is ensured to parse successfully.
This was originally available to provide an owned representation for a password hash, but now
that PasswordHash is fully owned, it can be used instead, or String to store a
serialized PHC string.
Implementationsยง
Sourceยงimpl PasswordHashString
impl PasswordHashString
Sourcepub fn new(s: &str) -> Result<Self>
pub fn new(s: &str) -> Result<Self>
Parse a password hash from a string in the PHC string format.
Sourcepub fn password_hash(&self) -> PasswordHash
pub fn password_hash(&self) -> PasswordHash
Parse this owned string as a PasswordHash.
Sourcepub fn params(&self) -> ParamsString
pub fn params(&self) -> ParamsString
Algorithm-specific parameters.
Trait Implementationsยง
Sourceยงimpl AsRef<str> for PasswordHashString
impl AsRef<str> for PasswordHashString
Sourceยงimpl Clone for PasswordHashString
impl Clone for PasswordHashString
Sourceยงfn clone(&self) -> PasswordHashString
fn clone(&self) -> PasswordHashString
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 PasswordHashString
impl Debug for PasswordHashString
Sourceยงimpl Display for PasswordHashString
impl Display for PasswordHashString
Sourceยงimpl From<&PasswordHash> for PasswordHashString
impl From<&PasswordHash> for PasswordHashString
Sourceยงfn from(hash: &PasswordHash) -> PasswordHashString
fn from(hash: &PasswordHash) -> PasswordHashString
Converts to this type from the input type.
Sourceยงimpl From<PasswordHash> for PasswordHashString
impl From<PasswordHash> for PasswordHashString
Sourceยงfn from(hash: PasswordHash) -> PasswordHashString
fn from(hash: PasswordHash) -> PasswordHashString
Converts to this type from the input type.
Sourceยงimpl FromStr for PasswordHashString
impl FromStr for PasswordHashString
Sourceยงimpl PartialEq for PasswordHashString
impl PartialEq for PasswordHashString
impl Eq for PasswordHashString
impl StructuralPartialEq for PasswordHashString
Auto Trait Implementationsยง
impl Freeze for PasswordHashString
impl RefUnwindSafe for PasswordHashString
impl Send for PasswordHashString
impl Sync for PasswordHashString
impl Unpin for PasswordHashString
impl UnsafeUnpin for PasswordHashString
impl UnwindSafe for PasswordHashString
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