use crate::models;
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ContextualFlowInfoLayoutEnum {
#[serde(rename = "stacked")]
Stacked,
#[serde(rename = "content_left")]
ContentLeft,
#[serde(rename = "content_right")]
ContentRight,
#[serde(rename = "sidebar_left")]
SidebarLeft,
#[serde(rename = "sidebar_right")]
SidebarRight,
}
impl ToString for ContextualFlowInfoLayoutEnum {
fn to_string(&self) -> String {
match self {
Self::Stacked => String::from("stacked"),
Self::ContentLeft => String::from("content_left"),
Self::ContentRight => String::from("content_right"),
Self::SidebarLeft => String::from("sidebar_left"),
Self::SidebarRight => String::from("sidebar_right"),
}
}
}
impl Default for ContextualFlowInfoLayoutEnum {
fn default() -> ContextualFlowInfoLayoutEnum {
Self::Stacked
}
}