pub struct Alarm {
pub id: EntityId,
pub timestamp: DateTime<Utc>,
pub category: EventCategory,
pub severity: EventSeverity,
pub message: String,
pub archived: bool,
pub device_mac: Option<MacAddress>,
pub site_id: Option<EntityId>,
}Expand description
Alarm (a persistent event requiring acknowledgment).
Fields§
§id: EntityId§timestamp: DateTime<Utc>§category: EventCategory§severity: EventSeverity§message: String§archived: bool§device_mac: Option<MacAddress>§site_id: Option<EntityId>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Alarm
impl<'de> Deserialize<'de> for Alarm
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 From<LegacyAlarm> for Alarm
impl From<LegacyAlarm> for Alarm
Source§fn from(a: LegacyAlarm) -> Self
fn from(a: LegacyAlarm) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Alarm
impl RefUnwindSafe for Alarm
impl Send for Alarm
impl Sync for Alarm
impl Unpin for Alarm
impl UnsafeUnpin for Alarm
impl UnwindSafe for Alarm
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