Expand description
§Evento Macros
This crate provides procedural macros for the Evento event sourcing framework. These macros simplify the implementation of aggregators and event handlers by generating boilerplate code automatically.
§Macros
aggregator- Implements the [Aggregator] trait for structs with event handler methodshandler- Creates event handler functions for use with subscriptionsAggregatorName- Derives theAggregatorNametrait for event types
§Usage
This crate is typically used through the main evento crate with the macro feature enabled:
[dependencies]
evento = { version = "1.0", features = ["macro"] }§Examples
See the individual macro documentation for detailed usage examples.
Attribute Macros§
- aggregator
- Implements the [
evento::Aggregator] trait for structs with event handler methods - handler
- Creates an event handler for use with event subscriptions
Derive Macros§
- Aggregator
Name - Derives the [
evento::AggregatorName] trait for event types