authentik_client/models/
authorization_code_auth_method_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.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 AuthorizationCodeAuthMethodEnum {
17    #[serde(rename = "basic_auth")]
18    BasicAuth,
19    #[serde(rename = "post_body")]
20    PostBody,
21}
22
23impl std::fmt::Display for AuthorizationCodeAuthMethodEnum {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::BasicAuth => write!(f, "basic_auth"),
27            Self::PostBody => write!(f, "post_body"),
28        }
29    }
30}
31
32impl Default for AuthorizationCodeAuthMethodEnum {
33    fn default() -> AuthorizationCodeAuthMethodEnum {
34        Self::BasicAuth
35    }
36}