/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CertificateTypeEnum {
    #[serde(rename = "client")]
    Client,
    #[serde(rename = "server")]
    Server,
    #[serde(rename = "mutual_tls")]
    MutualTls,
}

impl ToString for CertificateTypeEnum {
    fn to_string(&self) -> String {
        match self {
            Self::Client => String::from("client"),
            Self::Server => String::from("server"),
            Self::MutualTls => String::from("mutual_tls"),
        }
    }
}

impl Default for CertificateTypeEnum {
    fn default() -> CertificateTypeEnum {
        Self::Client
    }
}
