#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RackReservationStatus {
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
pub value: Option<Value>,
#[serde(rename = "label", skip_serializing_if = "Option::is_none")]
pub label: Option<Label>,
}
impl RackReservationStatus {
pub fn new() -> RackReservationStatus {
RackReservationStatus {
value: None,
label: None,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Value {
#[serde(rename = "pending")]
Pending,
#[serde(rename = "active")]
Active,
#[serde(rename = "stale")]
Stale,
}
impl Default for Value {
fn default() -> Value {
Self::Pending
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Label {
#[serde(rename = "Pending")]
Pending,
#[serde(rename = "Active")]
Active,
#[serde(rename = "Stale")]
Stale,
}
impl Default for Label {
fn default() -> Label {
Self::Pending
}
}