bitwarden_api_api/models/
kdf_type.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[repr(i64)]
#[derive(
Clone,
Copy,
Debug,
Eq,
PartialEq,
Ord,
PartialOrd,
Hash,
serde_repr::Serialize_repr,
serde_repr::Deserialize_repr,
)]
pub enum KdfType {
PBKDF2_SHA256 = 0,
Argon2id = 1,
}
impl std::fmt::Display for KdfType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::PBKDF2_SHA256 => write!(f, "0"),
Self::Argon2id => write!(f, "1"),
}
}
}
impl Default for KdfType {
fn default() -> KdfType {
Self::PBKDF2_SHA256
}
}