ash_api 0.1.7

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Hai (Ash API) specifications.
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.1.7
 * Contact: E36 Knots
 * Generated by: https://openapi-generator.tech
 */

/// CloudProvider : Cloud provider

/// Cloud provider
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CloudProvider {
    #[serde(rename = "aws")]
    Aws,
    #[serde(rename = "azure")]
    Azure,
    #[serde(rename = "google")]
    Google,
    #[serde(rename = "localhost")]
    Localhost,

}

impl ToString for CloudProvider {
    fn to_string(&self) -> String {
        match self {
            Self::Aws => String::from("aws"),
            Self::Azure => String::from("azure"),
            Self::Google => String::from("google"),
            Self::Localhost => String::from("localhost"),
        }
    }
}

impl Default for CloudProvider {
    fn default() -> CloudProvider {
        Self::Aws
    }
}