#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AuthenticatorAttachment {
#[serde(rename = "platform")]
Platform,
#[serde(rename = "cross-platform")]
CrossPlatform,
}
impl ToString for AuthenticatorAttachment {
fn to_string(&self) -> String {
match self {
Self::Platform => String::from("platform"),
Self::CrossPlatform => String::from("cross-platform"),
}
}
}
impl Default for AuthenticatorAttachment {
fn default() -> AuthenticatorAttachment {
Self::Platform
}
}