authentik-client 2026.2.2-rc2

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc2
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum DeviceFactsOsFamily {
    #[serde(rename = "linux")]
    Linux,
    #[serde(rename = "unix")]
    Unix,
    #[serde(rename = "bsd")]
    Bsd,
    #[serde(rename = "windows")]
    Windows,
    #[serde(rename = "mac_os")]
    MacOs,
    #[serde(rename = "android")]
    Android,
    #[serde(rename = "i_os")]
    IOs,
    #[serde(rename = "other")]
    Other,
}

impl std::fmt::Display for DeviceFactsOsFamily {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Linux => write!(f, "linux"),
            Self::Unix => write!(f, "unix"),
            Self::Bsd => write!(f, "bsd"),
            Self::Windows => write!(f, "windows"),
            Self::MacOs => write!(f, "mac_os"),
            Self::Android => write!(f, "android"),
            Self::IOs => write!(f, "i_os"),
            Self::Other => write!(f, "other"),
        }
    }
}

impl Default for DeviceFactsOsFamily {
    fn default() -> DeviceFactsOsFamily {
        Self::Linux
    }
}