pub enum UserPassword {
Plaintext(SecretString),
Sha256(SecretString),
}Variants§
Plaintext(SecretString)
Sha256(SecretString)
Implementations§
Source§impl UserPassword
impl UserPassword
pub fn secret(&self) -> &SecretString
pub fn from_digest_json( input: &SecretString, ) -> Result<Self, PasswordDigestError>
Trait Implementations§
Source§impl Clone for UserPassword
impl Clone for UserPassword
Source§impl Debug for UserPassword
impl Debug for UserPassword
Source§impl From<SecretBox<str>> for UserPassword
impl From<SecretBox<str>> for UserPassword
Source§fn from(value: SecretString) -> Self
fn from(value: SecretString) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserPassword
impl RefUnwindSafe for UserPassword
impl Send for UserPassword
impl Sync for UserPassword
impl Unpin for UserPassword
impl UnsafeUnpin for UserPassword
impl UnwindSafe for UserPassword
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