#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum WirelessNetworkModeChoices {
#[serde(rename = "Central")]
Central,
#[serde(rename = "Fabric")]
Fabric,
#[serde(rename = "Standalone (Autonomous)")]
StandaloneLeftParenthesisAutonomousRightParenthesis,
#[serde(rename = "Local (Flex)")]
LocalLeftParenthesisFlexRightParenthesis,
#[serde(rename = "Mesh")]
Mesh,
#[serde(rename = "Bridge")]
Bridge,
}
impl ToString for WirelessNetworkModeChoices {
fn to_string(&self) -> String {
match self {
Self::Central => String::from("Central"),
Self::Fabric => String::from("Fabric"),
Self::StandaloneLeftParenthesisAutonomousRightParenthesis => {
String::from("Standalone (Autonomous)")
}
Self::LocalLeftParenthesisFlexRightParenthesis => String::from("Local (Flex)"),
Self::Mesh => String::from("Mesh"),
Self::Bridge => String::from("Bridge"),
}
}
}
impl Default for WirelessNetworkModeChoices {
fn default() -> WirelessNetworkModeChoices {
Self::Central
}
}