authentik_rust/models/
ui_theme_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// UiThemeEnum : * `automatic` - Automatic * `light` - Light * `dark` - Dark
14/// * `automatic` - Automatic * `light` - Light * `dark` - Dark
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}
25
26impl ToString for UiThemeEnum {
27    fn to_string(&self) -> String {
28        match self {
29            Self::Automatic => String::from("automatic"),
30            Self::Light => String::from("light"),
31            Self::Dark => String::from("dark"),
32        }
33    }
34}
35
36impl Default for UiThemeEnum {
37    fn default() -> UiThemeEnum {
38        Self::Automatic
39    }
40}
41