#[non_exhaustive]pub enum KdfAlgorithm {
Scrypt,
HkdfSha256,
Pbkdf2Sha256,
}Expand description
Key derivation functions of POST /v2/kdf.
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.
Scrypt
scrypt (N = 2^17, r = 8).
HkdfSha256
HKDF-SHA256.
Pbkdf2Sha256
PBKDF2-SHA256, at least 600,000 iterations.
Trait Implementations§
Source§impl Clone for KdfAlgorithm
impl Clone for KdfAlgorithm
impl Copy for KdfAlgorithm
Source§impl Debug for KdfAlgorithm
impl Debug for KdfAlgorithm
Source§impl Default for KdfAlgorithm
impl Default for KdfAlgorithm
Source§impl<'de> Deserialize<'de> for KdfAlgorithm
impl<'de> Deserialize<'de> for KdfAlgorithm
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 Eq for KdfAlgorithm
Source§impl Hash for KdfAlgorithm
impl Hash for KdfAlgorithm
Source§impl PartialEq for KdfAlgorithm
impl PartialEq for KdfAlgorithm
Source§impl Serialize for KdfAlgorithm
impl Serialize for KdfAlgorithm
impl StructuralPartialEq for KdfAlgorithm
Auto Trait Implementations§
impl Forget for KdfAlgorithm
impl Freeze for KdfAlgorithm
impl Move for KdfAlgorithm
impl RefUnwindSafe for KdfAlgorithm
impl Send for KdfAlgorithm
impl Sync for KdfAlgorithm
impl Unpin for KdfAlgorithm
impl UnsafeUnpin for KdfAlgorithm
impl UnwindSafe for KdfAlgorithm
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.