[][src]Trait cqrs::AggregateEvent

pub trait AggregateEvent<A>: Event where
    A: Aggregate
{ fn apply_to(self, aggregate: &mut A); }

An event that can be applied to an aggregate.

Required methods

fn apply_to(self, aggregate: &mut A)

Consumes the event, applying its effects to the aggregate.

Loading content...

Implementors

Loading content...