authentik-client 2026.2.2-rc1

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc1
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AuthorizationCodeAuthMethodEnum {
    #[serde(rename = "basic_auth")]
    BasicAuth,
    #[serde(rename = "post_body")]
    PostBody,
}

impl std::fmt::Display for AuthorizationCodeAuthMethodEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::BasicAuth => write!(f, "basic_auth"),
            Self::PostBody => write!(f, "post_body"),
        }
    }
}

impl Default for AuthorizationCodeAuthMethodEnum {
    fn default() -> AuthorizationCodeAuthMethodEnum {
        Self::BasicAuth
    }
}