#[repr(u16)]pub enum PasswordHashVersion {
Latest = 0,
V1 = 1,
V2 = 2,
}Expand description
The versions of the password hashing scheme to use.
Variants§
Latest = 0
Uses the latest version.
V1 = 1
Uses version 1: PBKDF2-HMAC-SHA2-256.
V2 = 2
Uses version 2: Argon2id.
Trait Implementations§
Source§impl Clone for PasswordHashVersion
impl Clone for PasswordHashVersion
Source§fn clone(&self) -> PasswordHashVersion
fn clone(&self) -> PasswordHashVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PasswordHashVersion
Source§impl Debug for PasswordHashVersion
impl Debug for PasswordHashVersion
Source§impl Default for PasswordHashVersion
impl Default for PasswordHashVersion
Source§fn default() -> PasswordHashVersion
fn default() -> PasswordHashVersion
Returns the “default value” for a type. Read more
impl Eq 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
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq 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>>
Auto Trait Implementations§
impl Freeze for PasswordHashVersion
impl RefUnwindSafe for PasswordHashVersion
impl Send for PasswordHashVersion
impl Sync for PasswordHashVersion
impl Unpin for PasswordHashVersion
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.