#[non_exhaustive]#[repr(u8)]pub enum KdfKind {
Argon2id = 0,
Scrypt = 1,
}Expand description
Password-hashing algorithm family.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Argon2id = 0
Argon2id (OWASP 2024 recommended default).
Scrypt = 1
Scrypt (fallback for legacy imports).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KdfKind
impl<'de> Deserialize<'de> for KdfKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for KdfKind
impl Eq for KdfKind
impl StructuralPartialEq for KdfKind
Auto Trait Implementations§
impl Freeze for KdfKind
impl RefUnwindSafe for KdfKind
impl Send for KdfKind
impl Sync for KdfKind
impl Unpin for KdfKind
impl UnsafeUnpin for KdfKind
impl UnwindSafe for KdfKind
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