use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum SkuName {
#[serde(rename = "Standard_LRS")]
StandardLrs,
#[serde(rename = "Standard_GRS")]
StandardGrs,
#[serde(rename = "Standard_RAGRS")]
StandardRagrs,
#[serde(rename = "Standard_ZRS")]
StandardZrs,
#[serde(rename = "Premium_LRS")]
PremiumLrs,
}
impl std::fmt::Display for SkuName {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::StandardLrs => write!(f, "Standard_LRS"),
Self::StandardGrs => write!(f, "Standard_GRS"),
Self::StandardRagrs => write!(f, "Standard_RAGRS"),
Self::StandardZrs => write!(f, "Standard_ZRS"),
Self::PremiumLrs => write!(f, "Premium_LRS"),
}
}
}
impl Default for SkuName {
fn default() -> SkuName {
Self::StandardLrs
}
}