authentik_rust/models/
authenticator_attachment_enum.rs1use crate::models;
12
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum AuthenticatorAttachmentEnum {
17 #[serde(rename = "platform")]
18 Platform,
19 #[serde(rename = "cross-platform")]
20 CrossPlatform,
21
22}
23
24impl ToString for AuthenticatorAttachmentEnum {
25 fn to_string(&self) -> String {
26 match self {
27 Self::Platform => String::from("platform"),
28 Self::CrossPlatform => String::from("cross-platform"),
29 }
30 }
31}
32
33impl Default for AuthenticatorAttachmentEnum {
34 fn default() -> AuthenticatorAttachmentEnum {
35 Self::Platform
36 }
37}
38