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
 */

/// Size : Resource size

/// Resource size
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Size {
    #[serde(rename = "small")]
    Small,
    #[serde(rename = "medium")]
    Medium,
    #[serde(rename = "large")]
    Large,

}

impl ToString for Size {
    fn to_string(&self) -> String {
        match self {
            Self::Small => String::from("small"),
            Self::Medium => String::from("medium"),
            Self::Large => String::from("large"),
        }
    }
}

impl Default for Size {
    fn default() -> Size {
        Self::Small
    }
}