Trait EventTrait

Source
pub trait EventTrait {
    // Required methods
    fn event_type(&self) -> &str;
    fn payload(&self) -> Option<&Value>;
}
Expand description

Trait for event objects in a state machine

Required Methods§

Source

fn event_type(&self) -> &str

Get the event type

Source

fn payload(&self) -> Option<&Value>

Get the payload data, if any

Implementors§