pub struct MonitorAlert {
pub timestamp: String,
pub severity: Severity,
pub monitor: String,
pub message: String,
pub details: Option<String>,
}Expand description
A monitor alert emitted onto the AlertBus and persisted to SQLite.
Fields§
§timestamp: String§severity: Severity§monitor: String§message: String§details: Option<String>Trait Implementations§
Source§impl Clone for MonitorAlert
impl Clone for MonitorAlert
Source§fn clone(&self) -> MonitorAlert
fn clone(&self) -> MonitorAlert
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MonitorAlert
impl Debug for MonitorAlert
Source§impl<'de> Deserialize<'de> for MonitorAlert
impl<'de> Deserialize<'de> for MonitorAlert
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MonitorAlert, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MonitorAlert, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MonitorAlert
impl PartialEq for MonitorAlert
Source§fn eq(&self, other: &MonitorAlert) -> bool
fn eq(&self, other: &MonitorAlert) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MonitorAlert
impl Serialize for MonitorAlert
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MonitorAlert
Auto Trait Implementations§
impl Freeze for MonitorAlert
impl RefUnwindSafe for MonitorAlert
impl Send for MonitorAlert
impl Sync for MonitorAlert
impl Unpin for MonitorAlert
impl UnsafeUnpin for MonitorAlert
impl UnwindSafe for MonitorAlert
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