pub trait Event: Send + Sync {
    fn get_name(&self) -> String;
    fn get_data(&self) -> Option<Value>;
    fn get_time(&self) -> String;

    fn as_event_description(&self) -> Map<String, Value> { ... }
}
Expand description

High-level Event trait.

Required Methods

Get the event’s name.

Get the event’s data.

Get the event’s timestamp.

Provided Methods

Get the event description.

Returns a JSON map describing the event.

Implementors