event

Attribute Macro event 

Source
#[event]
Expand description

Marks an enum or struct as an Event

Events represent immutable facts that have occurred in the system.

§Example

#[event]
enum UserEvent {
    Created { user_id: String, email: String },
    Updated { user_id: String, email: String },
}