Event

Derive Macro Event 

Source
#[derive(Event)]
{
    // Attributes available to this derive:
    #[event]
}
Expand description

Derives the Event trait for an enum.

This macro automatically implements the event_type method, which returns a string slice representing the variant’s name.