authentik_rust/models/
ui_theme_enum.rs1use crate::models;
12
13#[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