#[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§impl TryFrom<u16> for PasswordHashVersion
impl TryFrom<u16> for PasswordHashVersion
Source§type Error = TryFromPrimitiveError<PasswordHashVersion>
type Error = TryFromPrimitiveError<PasswordHashVersion>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PasswordHashVersion
impl TryFromPrimitive for PasswordHashVersion
const NAME: &'static str = "PasswordHashVersion"
type Primitive = u16
type Error = TryFromPrimitiveError<PasswordHashVersion>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl Zeroize for PasswordHashVersion
impl Zeroize for PasswordHashVersion
impl Copy for PasswordHashVersion
impl Eq for PasswordHashVersion
impl StructuralPartialEq for PasswordHashVersion
Auto Trait Implementations§
impl Freeze for PasswordHashVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.