#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisasterRecoveryEvent {
#[prost(enumeration = "disaster_recovery_event::Severity", optional, tag = "1")]
pub severity: ::core::option::Option<i32>,
#[prost(string, optional, tag = "2")]
pub details: ::core::option::Option<::prost::alloc::string::String>,
}
pub mod disaster_recovery_event {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Severity {
Unspecified = 0,
ActionRequired = 1,
ActionSuggested = 2,
Notice = 3,
}
impl Severity {
pub fn as_str_name(&self) -> &'static str {
match self {
Severity::Unspecified => "SEVERITY_UNSPECIFIED",
Severity::ActionRequired => "ACTION_REQUIRED",
Severity::ActionSuggested => "ACTION_SUGGESTED",
Severity::Notice => "NOTICE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SEVERITY_UNSPECIFIED" => Some(Self::Unspecified),
"ACTION_REQUIRED" => Some(Self::ActionRequired),
"ACTION_SUGGESTED" => Some(Self::ActionSuggested),
"NOTICE" => Some(Self::Notice),
_ => None,
}
}
}
}