pub struct OutageConfig {
pub start_date: NaiveDate,
pub end_date: NaiveDate,
pub affected_systems: Vec<String>,
pub data_loss: bool,
pub recovery_mode: Option<RecoveryMode>,
pub cause: OutageCause,
}Expand description
Configuration for a system outage.
Fields§
§start_date: NaiveDateStart of the outage
end_date: NaiveDateEnd of the outage
affected_systems: Vec<String>Affected systems/modules
data_loss: boolWhether data was completely lost vs just delayed
recovery_mode: Option<RecoveryMode>Recovery mode (if not complete loss)
cause: OutageCauseOutage cause for labeling
Trait Implementations§
Source§impl Clone for OutageConfig
impl Clone for OutageConfig
Source§fn clone(&self) -> OutageConfig
fn clone(&self) -> OutageConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutageConfig
impl Debug for OutageConfig
Source§impl<'de> Deserialize<'de> for OutageConfig
impl<'de> Deserialize<'de> for OutageConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OutageConfig
impl PartialEq for OutageConfig
Source§impl Serialize for OutageConfig
impl Serialize for OutageConfig
impl Eq for OutageConfig
impl StructuralPartialEq for OutageConfig
Auto Trait Implementations§
impl Freeze for OutageConfig
impl RefUnwindSafe for OutageConfig
impl Send for OutageConfig
impl Sync for OutageConfig
impl Unpin for OutageConfig
impl UnwindSafe for OutageConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.