/*
 * 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 ConsolePortTypeChoices {
    #[serde(rename = "de-9")]
    De9,
    #[serde(rename = "db-25")]
    Db25,
    #[serde(rename = "rj-11")]
    Rj11,
    #[serde(rename = "rj-12")]
    Rj12,
    #[serde(rename = "rj-45")]
    Rj45,
    #[serde(rename = "mini-din-8")]
    MiniDin8,
    #[serde(rename = "usb-a")]
    UsbA,
    #[serde(rename = "usb-b")]
    UsbB,
    #[serde(rename = "usb-c")]
    UsbC,
    #[serde(rename = "usb-mini-a")]
    UsbMiniA,
    #[serde(rename = "usb-mini-b")]
    UsbMiniB,
    #[serde(rename = "usb-micro-a")]
    UsbMicroA,
    #[serde(rename = "usb-micro-b")]
    UsbMicroB,
    #[serde(rename = "usb-micro-ab")]
    UsbMicroAb,
    #[serde(rename = "other")]
    Other,
}

impl ToString for ConsolePortTypeChoices {
    fn to_string(&self) -> String {
        match self {
            Self::De9 => String::from("de-9"),
            Self::Db25 => String::from("db-25"),
            Self::Rj11 => String::from("rj-11"),
            Self::Rj12 => String::from("rj-12"),
            Self::Rj45 => String::from("rj-45"),
            Self::MiniDin8 => String::from("mini-din-8"),
            Self::UsbA => String::from("usb-a"),
            Self::UsbB => String::from("usb-b"),
            Self::UsbC => String::from("usb-c"),
            Self::UsbMiniA => String::from("usb-mini-a"),
            Self::UsbMiniB => String::from("usb-mini-b"),
            Self::UsbMicroA => String::from("usb-micro-a"),
            Self::UsbMicroB => String::from("usb-micro-b"),
            Self::UsbMicroAb => String::from("usb-micro-ab"),
            Self::Other => String::from("other"),
        }
    }
}

impl Default for ConsolePortTypeChoices {
    fn default() -> ConsolePortTypeChoices {
        Self::De9
    }
}
