Skip to main content

authentik_client/models/
authenticator_attachment_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.10.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14///
15#[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
23impl std::fmt::Display for AuthenticatorAttachmentEnum {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::Platform => write!(f, "platform"),
27            Self::CrossPlatform => write!(f, "cross-platform"),
28        }
29    }
30}
31
32impl Default for AuthenticatorAttachmentEnum {
33    fn default() -> AuthenticatorAttachmentEnum {
34        Self::Platform
35    }
36}