Skip to main content

authentik_client/models/
digits_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 DigitsEnum {
17    #[serde(rename = "6")]
18    Variant6,
19    #[serde(rename = "8")]
20    Variant8,
21}
22
23impl std::fmt::Display for DigitsEnum {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::Variant6 => write!(f, "6"),
27            Self::Variant8 => write!(f, "8"),
28        }
29    }
30}
31
32impl Default for DigitsEnum {
33    fn default() -> DigitsEnum {
34        Self::Variant6
35    }
36}