Skip to main content

authentik_client/models/
lifecycle_iteration_state_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
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 LifecycleIterationStateEnum {
17    #[serde(rename = "REVIEWED")]
18    Reviewed,
19    #[serde(rename = "PENDING")]
20    Pending,
21    #[serde(rename = "OVERDUE")]
22    Overdue,
23    #[serde(rename = "CANCELED")]
24    Canceled,
25}
26
27impl std::fmt::Display for LifecycleIterationStateEnum {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::Reviewed => write!(f, "REVIEWED"),
31            Self::Pending => write!(f, "PENDING"),
32            Self::Overdue => write!(f, "OVERDUE"),
33            Self::Canceled => write!(f, "CANCELED"),
34        }
35    }
36}
37
38impl Default for LifecycleIterationStateEnum {
39    fn default() -> LifecycleIterationStateEnum {
40        Self::Reviewed
41    }
42}