authentik_client/models/
contextual_flow_info_layout_enum.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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 #[serde(rename = "sidebar_left_frame_background")]
28 SidebarLeftFrameBackground,
29 #[serde(rename = "sidebar_right_frame_background")]
30 SidebarRightFrameBackground,
31}
32
33impl std::fmt::Display for ContextualFlowInfoLayoutEnum {
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 ContextualFlowInfoLayoutEnum {
48 fn default() -> ContextualFlowInfoLayoutEnum {
49 Self::Stacked
50 }
51}