[][src]Trait cqrs_core::AggregateEvent

pub trait AggregateEvent<A: Aggregate>: Event {
    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...