use crate::models;
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ReactorFeatureStatus {
#[serde(rename = "ACTIVE")]
Active,
#[serde(rename = "DISCONNECTED")]
Disconnected,
#[serde(rename = "PENDING")]
Pending,
#[serde(rename = "DISABLED")]
Disabled,
#[serde(rename = "UNKNOWN")]
Unknown,
}
impl ToString for ReactorFeatureStatus {
fn to_string(&self) -> String {
match self {
Self::Active => String::from("ACTIVE"),
Self::Disconnected => String::from("DISCONNECTED"),
Self::Pending => String::from("PENDING"),
Self::Disabled => String::from("DISABLED"),
Self::Unknown => String::from("UNKNOWN"),
}
}
}
impl Default for ReactorFeatureStatus {
fn default() -> ReactorFeatureStatus {
Self::Active
}
}