#[repr(u16)]pub enum PasswordHashVersion {
Latest = 0,
V1 = 1,
}Expand description
The versions of the password hashing scheme to use.
Variants§
Trait Implementations§
source§impl Clone for PasswordHashVersion
impl Clone for PasswordHashVersion
source§fn clone(&self) -> PasswordHashVersion
fn clone(&self) -> PasswordHashVersion
Returns a copy 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 PasswordHashVersion
impl Debug for PasswordHashVersion
source§impl Default for PasswordHashVersion
impl Default for PasswordHashVersion
source§impl From<PasswordHashVersion> for u16
impl From<PasswordHashVersion> for u16
source§fn from(enum_value: PasswordHashVersion) -> Self
fn from(enum_value: PasswordHashVersion) -> Self
Converts to this type from the input type.
source§impl PartialEq for PasswordHashVersion
impl PartialEq for PasswordHashVersion
source§fn eq(&self, other: &PasswordHashVersion) -> bool
fn eq(&self, other: &PasswordHashVersion) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u16> for PasswordHashVersion
impl TryFrom<u16> for PasswordHashVersion
§type Error = TryFromPrimitiveError<PasswordHashVersion>
type Error = TryFromPrimitiveError<PasswordHashVersion>
The type returned in the event of a conversion error.
source§impl Zeroize for PasswordHashVersion
impl Zeroize for PasswordHashVersion
impl Copy for PasswordHashVersion
impl Eq for PasswordHashVersion
impl StructuralEq for PasswordHashVersion
impl StructuralPartialEq for PasswordHashVersion
Auto Trait Implementations§
impl RefUnwindSafe for PasswordHashVersion
impl Send for PasswordHashVersion
impl Sync for PasswordHashVersion
impl Unpin for PasswordHashVersion
impl UnwindSafe for PasswordHashVersion
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