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

use serde::{Deserialize, Serialize};

use crate::models;

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CertificateKeyPairKeyTypeEnum {
    #[serde(rename = "rsa")]
    Rsa,
    #[serde(rename = "ec")]
    Ec,
    #[serde(rename = "dsa")]
    Dsa,
    #[serde(rename = "ed25519")]
    Ed25519,
    #[serde(rename = "ed448")]
    Ed448,
}

impl std::fmt::Display for CertificateKeyPairKeyTypeEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Rsa => write!(f, "rsa"),
            Self::Ec => write!(f, "ec"),
            Self::Dsa => write!(f, "dsa"),
            Self::Ed25519 => write!(f, "ed25519"),
            Self::Ed448 => write!(f, "ed448"),
        }
    }
}

impl Default for CertificateKeyPairKeyTypeEnum {
    fn default() -> CertificateKeyPairKeyTypeEnum {
        Self::Rsa
    }
}
