pub trait IEvent {
    fn to_event(&self) -> Event;
    fn from_event(event: Event) -> Self;
}
Expand description

Represents an struct that could be serialized into an Event

use #[derive(Event)] to implement it automatically

Required Methods

Implementors