[][src]Trait riker_es::Aggregate

pub trait Aggregate: Actor + Message + Default {
    type Update: Message;
    fn id(&self) -> EntityId;
fn apply_update(&mut self, update: Self::Update); }

An Aggregate is the projected data of a series of events of an entity, given an initial state update events are applied to it until it reaches the desired state.

Associated Types

Loading content...

Required methods

fn id(&self) -> EntityId

fn apply_update(&mut self, update: Self::Update)

Loading content...

Implementors

Loading content...