pub struct OpsisEvent {
pub id: EventId,
pub tick: WorldTick,
pub timestamp: DateTime<Utc>,
pub source: EventSource,
pub kind: OpsisEventKind,
pub location: Option<GeoPoint>,
pub domain: Option<StateDomain>,
pub severity: Option<f32>,
pub schema_key: SchemaKey,
pub tags: Vec<String>,
}Expand description
Universal event envelope for all Opsis events.
Fields§
§id: EventId§tick: WorldTick§timestamp: DateTime<Utc>§source: EventSource§kind: OpsisEventKind§location: Option<GeoPoint>§domain: Option<StateDomain>§severity: Option<f32>§schema_key: SchemaKeyTrait Implementations§
Source§impl Clone for OpsisEvent
impl Clone for OpsisEvent
Source§fn clone(&self) -> OpsisEvent
fn clone(&self) -> OpsisEvent
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 OpsisEvent
impl Debug for OpsisEvent
Source§impl<'de> Deserialize<'de> for OpsisEvent
impl<'de> Deserialize<'de> for OpsisEvent
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 OpsisEvent
impl RefUnwindSafe for OpsisEvent
impl Send for OpsisEvent
impl Sync for OpsisEvent
impl Unpin for OpsisEvent
impl UnsafeUnpin for OpsisEvent
impl UnwindSafe for OpsisEvent
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