Skip to main content

authentik_client/models/
flow_layout_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 FlowLayoutEnum {
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    #[serde(rename = "sidebar_left_frame_background")]
28    SidebarLeftFrameBackground,
29    #[serde(rename = "sidebar_right_frame_background")]
30    SidebarRightFrameBackground,
31}
32
33impl std::fmt::Display for FlowLayoutEnum {
34    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
35        match self {
36            Self::Stacked => write!(f, "stacked"),
37            Self::ContentLeft => write!(f, "content_left"),
38            Self::ContentRight => write!(f, "content_right"),
39            Self::SidebarLeft => write!(f, "sidebar_left"),
40            Self::SidebarRight => write!(f, "sidebar_right"),
41            Self::SidebarLeftFrameBackground => write!(f, "sidebar_left_frame_background"),
42            Self::SidebarRightFrameBackground => write!(f, "sidebar_right_frame_background"),
43        }
44    }
45}
46
47impl Default for FlowLayoutEnum {
48    fn default() -> FlowLayoutEnum {
49        Self::Stacked
50    }
51}