Skip to main content

authentik_client/models/
duo_response_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 DuoResponseEnum {
17    #[serde(rename = "success")]
18    Success,
19    #[serde(rename = "waiting")]
20    Waiting,
21    #[serde(rename = "invalid")]
22    Invalid,
23}
24
25impl std::fmt::Display for DuoResponseEnum {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Success => write!(f, "success"),
29            Self::Waiting => write!(f, "waiting"),
30            Self::Invalid => write!(f, "invalid"),
31        }
32    }
33}
34
35impl Default for DuoResponseEnum {
36    fn default() -> DuoResponseEnum {
37        Self::Success
38    }
39}