Skip to main content

authentik_client/models/
license_flags_enum.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///
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum LicenseFlagsEnum {
17    #[serde(rename = "trial")]
18    Trial,
19    #[serde(rename = "non_production")]
20    NonProduction,
21}
22
23impl std::fmt::Display for LicenseFlagsEnum {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::Trial => write!(f, "trial"),
27            Self::NonProduction => write!(f, "non_production"),
28        }
29    }
30}
31
32impl Default for LicenseFlagsEnum {
33    fn default() -> LicenseFlagsEnum {
34        Self::Trial
35    }
36}