Skip to main content

authentik_client/models/
patched_flow_request.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/// PatchedFlowRequest : Flow Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PatchedFlowRequest {
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    /// Visible in the URL.
20    #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
21    pub slug: Option<String>,
22    /// Shown as the Title in Flow pages.
23    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
24    pub title: Option<String>,
25    /// Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik.
26    #[serde(rename = "designation", skip_serializing_if = "Option::is_none")]
27    pub designation: Option<models::FlowDesignationEnum>,
28    /// Background shown during execution
29    #[serde(rename = "background", skip_serializing_if = "Option::is_none")]
30    pub background: Option<String>,
31    #[serde(rename = "policy_engine_mode", skip_serializing_if = "Option::is_none")]
32    pub policy_engine_mode: Option<models::PolicyEngineMode>,
33    /// Enable compatibility mode, increases compatibility with password managers on mobile devices.
34    #[serde(rename = "compatibility_mode", skip_serializing_if = "Option::is_none")]
35    pub compatibility_mode: Option<bool>,
36    #[serde(rename = "layout", skip_serializing_if = "Option::is_none")]
37    pub layout: Option<models::FlowLayoutEnum>,
38    /// Configure what should happen when a flow denies access to a user.
39    #[serde(rename = "denied_action", skip_serializing_if = "Option::is_none")]
40    pub denied_action: Option<models::DeniedActionEnum>,
41    /// Required level of authentication and authorization to access a flow.
42    #[serde(rename = "authentication", skip_serializing_if = "Option::is_none")]
43    pub authentication: Option<models::AuthenticationEnum>,
44}
45
46impl PatchedFlowRequest {
47    /// Flow Serializer
48    pub fn new() -> PatchedFlowRequest {
49        PatchedFlowRequest {
50            name: None,
51            slug: None,
52            title: None,
53            designation: None,
54            background: None,
55            policy_engine_mode: None,
56            compatibility_mode: None,
57            layout: None,
58            denied_action: None,
59            authentication: None,
60        }
61    }
62}