authentik_rust/models/
contextual_flow_info_layout_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/// ContextualFlowInfoLayoutEnum : * `stacked` - STACKED * `content_left` - CONTENT_LEFT * `content_right` - CONTENT_RIGHT * `sidebar_left` - SIDEBAR_LEFT * `sidebar_right` - SIDEBAR_RIGHT
14/// * `stacked` - STACKED * `content_left` - CONTENT_LEFT * `content_right` - CONTENT_RIGHT * `sidebar_left` - SIDEBAR_LEFT * `sidebar_right` - SIDEBAR_RIGHT
15#[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