Skip to main content

StreamEventExt

Trait StreamEventExt 

Source
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§

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§