pub trait Eventable:
Unpin
+ Send
+ Sync
+ 'static {
// Required method
fn data(&self) -> &str;
// Provided methods
fn event_type(&self) -> Option<&str> { ... }
fn id(&self) -> Option<&str> { ... }
}
Expand description
Required Methods§
Provided Methods§
Sourcefn event_type(&self) -> Option<&str>
fn event_type(&self) -> Option<&str>
return the event type, optionally