pub struct PasswordHashRef(/* private fields */);Expand description
Password hash reference type for hashes encoded in the Modular Crypt Format (MCF),
e.g. $<id>$....
For more information, see PasswordHash.
Implementations§
Source§impl PasswordHashRef
impl PasswordHashRef
Sourcepub fn new(s: &str) -> Result<&PasswordHashRef>
pub fn new(s: &str) -> Result<&PasswordHashRef>
Parse the given input string, returning an PasswordHashRef if valid.
Trait Implementations§
Source§impl AsRef<PasswordHashRef> for PasswordHash
Available on crate feature alloc only.
impl AsRef<PasswordHashRef> for PasswordHash
Available on crate feature
alloc only.Source§fn as_ref(&self) -> &PasswordHashRef
fn as_ref(&self) -> &PasswordHashRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for &PasswordHashRef
impl AsRef<str> for &PasswordHashRef
Source§impl Borrow<PasswordHashRef> for PasswordHash
Available on crate feature alloc only.
impl Borrow<PasswordHashRef> for PasswordHash
Available on crate feature
alloc only.Source§fn borrow(&self) -> &PasswordHashRef
fn borrow(&self) -> &PasswordHashRef
Immutably borrows from an owned value. Read more
Source§impl Debug for PasswordHashRef
impl Debug for PasswordHashRef
Source§impl Display for PasswordHashRef
impl Display for PasswordHashRef
Source§impl<'a> From<&'a PasswordHash> for &'a PasswordHashRef
Available on crate feature alloc only.
impl<'a> From<&'a PasswordHash> for &'a PasswordHashRef
Available on crate feature
alloc only.Source§fn from(hash: &'a PasswordHash) -> &'a PasswordHashRef
fn from(hash: &'a PasswordHash) -> &'a PasswordHashRef
Converts to this type from the input type.
Source§impl<'a> From<&'a PasswordHashRef> for &'a str
impl<'a> From<&'a PasswordHashRef> for &'a str
Source§fn from(hash: &'a PasswordHashRef) -> &'a str
fn from(hash: &'a PasswordHashRef) -> &'a str
Converts to this type from the input type.
Source§impl From<&PasswordHashRef> for PasswordHash
Available on crate feature alloc only.
impl From<&PasswordHashRef> for PasswordHash
Available on crate feature
alloc only.Source§fn from(hash: &PasswordHashRef) -> Self
fn from(hash: &PasswordHashRef) -> Self
Converts to this type from the input type.
Source§impl From<&PasswordHashRef> for String
Available on crate feature alloc only.
impl From<&PasswordHashRef> for String
Available on crate feature
alloc only.Source§fn from(hash: &PasswordHashRef) -> Self
fn from(hash: &PasswordHashRef) -> Self
Converts to this type from the input type.
Source§impl Ord for PasswordHashRef
impl Ord for PasswordHashRef
Source§impl PartialEq for PasswordHashRef
impl PartialEq for PasswordHashRef
Source§impl PartialOrd for PasswordHashRef
impl PartialOrd for PasswordHashRef
Source§impl ToOwned for PasswordHashRef
Available on crate feature alloc only.
impl ToOwned for PasswordHashRef
Available on crate feature
alloc only.Source§type Owned = PasswordHash
type Owned = PasswordHash
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> PasswordHash
fn to_owned(&self) -> PasswordHash
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more