authentik_client/models/
flow_layout_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.4
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}
28
29impl std::fmt::Display for FlowLayoutEnum {
30    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31        match self {
32            Self::Stacked => write!(f, "stacked"),
33            Self::ContentLeft => write!(f, "content_left"),
34            Self::ContentRight => write!(f, "content_right"),
35            Self::SidebarLeft => write!(f, "sidebar_left"),
36            Self::SidebarRight => write!(f, "sidebar_right"),
37        }
38    }
39}
40
41impl Default for FlowLayoutEnum {
42    fn default() -> FlowLayoutEnum {
43        Self::Stacked
44    }
45}