authentik_client/models/
flow_designation_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 FlowDesignationEnum {
17    #[serde(rename = "authentication")]
18    Authentication,
19    #[serde(rename = "authorization")]
20    Authorization,
21    #[serde(rename = "invalidation")]
22    Invalidation,
23    #[serde(rename = "enrollment")]
24    Enrollment,
25    #[serde(rename = "unenrollment")]
26    Unenrollment,
27    #[serde(rename = "recovery")]
28    Recovery,
29    #[serde(rename = "stage_configuration")]
30    StageConfiguration,
31}
32
33impl std::fmt::Display for FlowDesignationEnum {
34    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
35        match self {
36            Self::Authentication => write!(f, "authentication"),
37            Self::Authorization => write!(f, "authorization"),
38            Self::Invalidation => write!(f, "invalidation"),
39            Self::Enrollment => write!(f, "enrollment"),
40            Self::Unenrollment => write!(f, "unenrollment"),
41            Self::Recovery => write!(f, "recovery"),
42            Self::StageConfiguration => write!(f, "stage_configuration"),
43        }
44    }
45}
46
47impl Default for FlowDesignationEnum {
48    fn default() -> FlowDesignationEnum {
49        Self::Authentication
50    }
51}