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§
Sourcefn event_type(&self) -> &str
fn event_type(&self) -> &str
Get the event type