authentik_rust/models/
contextual_flow_info.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/// ContextualFlowInfo : Contextual flow information for a challenge
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ContextualFlowInfo {
16    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
17    pub title: Option<String>,
18    #[serde(rename = "background", skip_serializing_if = "Option::is_none")]
19    pub background: Option<String>,
20    #[serde(rename = "cancel_url")]
21    pub cancel_url: String,
22    #[serde(rename = "layout")]
23    pub layout: models::ContextualFlowInfoLayoutEnum,
24}
25
26impl ContextualFlowInfo {
27    /// Contextual flow information for a challenge
28    pub fn new(cancel_url: String, layout: models::ContextualFlowInfoLayoutEnum) -> ContextualFlowInfo {
29        ContextualFlowInfo {
30            title: None,
31            background: None,
32            cancel_url,
33            layout,
34        }
35    }
36}
37