Skip to main content

StreamEvent

Type Alias StreamEvent 

Source
pub type StreamEvent = JsonObject;
Expand description

One event from a Hot run stream (type, data_type, payload, run, …).

Aliased Type§

pub struct StreamEvent { /* private fields */ }

Trait Implementations§

Source§

impl StreamEventExt for StreamEvent

Source§

fn event_type(&self) -> &str

The event’s “type” field, or “” when absent.
Source§

fn run(&self) -> Option<&JsonObject>

The event’s “run” object, when present.
Source§

fn run_id(&self) -> Option<&str>

run.run_id, when present.