pub struct WatchAlert {
pub rule_id: String,
pub domain: String,
pub message: String,
pub current_value: f32,
pub previous_value: Option<f32>,
pub timestamp: DateTime<Utc>,
}Expand description
Watch alert notification.
Fields§
§rule_id: StringRule that triggered.
domain: StringDomain.
message: StringWhat was detected.
current_value: f32Current value.
previous_value: Option<f32>Previous value (if applicable).
timestamp: DateTime<Utc>When the alert was generated.
Trait Implementations§
Source§impl Clone for WatchAlert
impl Clone for WatchAlert
Source§fn clone(&self) -> WatchAlert
fn clone(&self) -> WatchAlert
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 WatchAlert
impl Debug for WatchAlert
Source§impl<'de> Deserialize<'de> for WatchAlert
impl<'de> Deserialize<'de> for WatchAlert
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
Auto Trait Implementations§
impl Freeze for WatchAlert
impl RefUnwindSafe for WatchAlert
impl Send for WatchAlert
impl Sync for WatchAlert
impl Unpin for WatchAlert
impl UnsafeUnpin for WatchAlert
impl UnwindSafe for WatchAlert
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