pub enum EventPayload {
Empty,
Entered {
zone_id: ZoneId,
class_id: Option<ClassId>,
},
Exited {
zone_id: ZoneId,
class_id: Option<ClassId>,
},
Crossed {
zone_id: ZoneId,
direction: Direction,
},
DwellStarted {
zone_id: ZoneId,
},
DwellEnded {
zone_id: ZoneId,
duration_ns: i64,
visit_count: u32,
},
Occupancy {
zone_id: ZoneId,
occupancy: u32,
},
Metrics {
score: f32,
aux: f32,
tag: u32,
},
}Expand description
Compact payload attached to an EventEnvelope.
Variants§
Empty
No additional fields.
Entered
Zone enter.
Fields
Exited
Zone exit.
Fields
Crossed
Line crossing.
DwellStarted
Dwell started.
DwellEnded
Dwell ended.
Fields
Occupancy
Occupancy snapshot.
Metrics
Free numeric payload for custom / analysis events.
Trait Implementations§
Source§impl Clone for EventPayload
impl Clone for EventPayload
Source§fn clone(&self) -> EventPayload
fn clone(&self) -> EventPayload
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 moreimpl Copy for EventPayload
Source§impl Debug for EventPayload
impl Debug for EventPayload
Source§impl PartialEq for EventPayload
impl PartialEq for EventPayload
impl StructuralPartialEq for EventPayload
Auto Trait Implementations§
impl Freeze for EventPayload
impl RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl UnsafeUnpin for EventPayload
impl UnwindSafe for EventPayload
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