pub trait StreamEventExt {
// Required methods
fn event_type(&self) -> &str;
fn run(&self) -> Option<&JsonObject>;
fn run_id(&self) -> Option<&str>;
}Expand description
Convenience accessors for StreamEvent wire-format fields.
Required Methods§
Sourcefn event_type(&self) -> &str
fn event_type(&self) -> &str
The event’s “type” field, or “” when absent.
Sourcefn run(&self) -> Option<&JsonObject>
fn run(&self) -> Option<&JsonObject>
The event’s “run” object, when present.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".