#[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
}
}