Derive Macro Event

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

derive_event generate the boilerplate to get the EventName

it generates it from the event enum : the attribute state give the prefix for the name unless the attribute composite_state in which case the current enum level is skip