pub struct Event {
pub id: Option<EntityId>,
pub timestamp: DateTime<Utc>,
pub category: EventCategory,
pub severity: EventSeverity,
pub event_type: String,
pub message: String,
pub device_mac: Option<MacAddress>,
pub client_mac: Option<MacAddress>,
pub site_id: Option<EntityId>,
pub raw_key: Option<String>,
/* private fields */
}Expand description
Unified event from WebSocket or Legacy API event log.
Fields§
§id: Option<EntityId>§timestamp: DateTime<Utc>§category: EventCategory§severity: EventSeverity§event_type: String§message: String§device_mac: Option<MacAddress>§client_mac: Option<MacAddress>§site_id: Option<EntityId>§raw_key: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Event
impl From<LegacyAlarm> for Event
Source§fn from(a: LegacyAlarm) -> Self
fn from(a: LegacyAlarm) -> Self
Converts to this type from the input type.
Source§impl From<LegacyEvent> for Event
impl From<LegacyEvent> for Event
Source§fn from(e: LegacyEvent) -> Self
fn from(e: LegacyEvent) -> Self
Converts to this type from the input type.
Source§impl From<UnifiEvent> for Event
impl From<UnifiEvent> for Event
Source§fn from(e: UnifiEvent) -> Self
fn from(e: UnifiEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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