[][src]Trait riker_es::Model

pub trait Model: Message {
    type Change: Message;
    fn id(&self) -> EntityId;
fn apply_change(&mut self, change: Self::Change); }

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_change(&mut self, change: Self::Change)

Loading content...

Implementations on Foreign Types

impl Model for ()[src]

type Change = ()

Loading content...

Implementors

Loading content...