#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct DeviceRedundancyGroupFailoverStrategy {
#[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 DeviceRedundancyGroupFailoverStrategy {
pub fn new() -> DeviceRedundancyGroupFailoverStrategy {
DeviceRedundancyGroupFailoverStrategy {
value: None,
label: None,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Value {
#[serde(rename = "")]
Empty,
#[serde(rename = "active-active")]
ActiveActive,
#[serde(rename = "active-passive")]
ActivePassive,
}
impl Default for Value {
fn default() -> Value {
Self::Empty
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Label {
#[serde(rename = "(unspecified)")]
LeftParenthesisUnspecifiedRightParenthesis,
#[serde(rename = "Active/Active")]
ActiveSlashActive,
#[serde(rename = "Active/Passive")]
ActiveSlashPassive,
}
impl Default for Label {
fn default() -> Label {
Self::LeftParenthesisUnspecifiedRightParenthesis
}
}