Trait AggregateEvent
cqrs
pub trait AggregateEvent<A>: Event where A: Aggregate, { fn apply_to(self, aggregate: &mut A); }
An event that can be applied to an aggregate.
fn apply_to(self, aggregate: &mut A)
Consumes the event, applying its effects to the aggregate.