authentik_rust/models/
contextual_flow_info_layout_enum.rs1use crate::models;
12
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum ContextualFlowInfoLayoutEnum {
17 #[serde(rename = "stacked")]
18 Stacked,
19 #[serde(rename = "content_left")]
20 ContentLeft,
21 #[serde(rename = "content_right")]
22 ContentRight,
23 #[serde(rename = "sidebar_left")]
24 SidebarLeft,
25 #[serde(rename = "sidebar_right")]
26 SidebarRight,
27
28}
29
30impl ToString for ContextualFlowInfoLayoutEnum {
31 fn to_string(&self) -> String {
32 match self {
33 Self::Stacked => String::from("stacked"),
34 Self::ContentLeft => String::from("content_left"),
35 Self::ContentRight => String::from("content_right"),
36 Self::SidebarLeft => String::from("sidebar_left"),
37 Self::SidebarRight => String::from("sidebar_right"),
38 }
39 }
40}
41
42impl Default for ContextualFlowInfoLayoutEnum {
43 fn default() -> ContextualFlowInfoLayoutEnum {
44 Self::Stacked
45 }
46}
47