Skip to main content

authentik_client/models/
intent_enum.rs

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