use crate::models;
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum DeviceClassesEnum {
#[serde(rename = "static")]
Static,
#[serde(rename = "totp")]
Totp,
#[serde(rename = "webauthn")]
Webauthn,
#[serde(rename = "duo")]
Duo,
#[serde(rename = "sms")]
Sms,
}
impl ToString for DeviceClassesEnum {
fn to_string(&self) -> String {
match self {
Self::Static => String::from("static"),
Self::Totp => String::from("totp"),
Self::Webauthn => String::from("webauthn"),
Self::Duo => String::from("duo"),
Self::Sms => String::from("sms"),
}
}
}
impl Default for DeviceClassesEnum {
fn default() -> DeviceClassesEnum {
Self::Static
}
}