#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AuthenticatorTransport {
#[serde(rename = "usb")]
Usb,
#[serde(rename = "nfc")]
Nfc,
#[serde(rename = "ble")]
Ble,
#[serde(rename = "internal")]
Internal,
}
impl ToString for AuthenticatorTransport {
fn to_string(&self) -> String {
match self {
Self::Usb => String::from("usb"),
Self::Nfc => String::from("nfc"),
Self::Ble => String::from("ble"),
Self::Internal => String::from("internal"),
}
}
}
impl Default for AuthenticatorTransport {
fn default() -> AuthenticatorTransport {
Self::Usb
}
}