Skip to main content

authentik_client/models/
ui_theme_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.0
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 UiThemeEnum {
17    #[serde(rename = "automatic")]
18    Automatic,
19    #[serde(rename = "light")]
20    Light,
21    #[serde(rename = "dark")]
22    Dark,
23}
24
25impl std::fmt::Display for UiThemeEnum {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Automatic => write!(f, "automatic"),
29            Self::Light => write!(f, "light"),
30            Self::Dark => write!(f, "dark"),
31        }
32    }
33}
34
35impl Default for UiThemeEnum {
36    fn default() -> UiThemeEnum {
37        Self::Automatic
38    }
39}