Trait eventsourcing::AggregateState[][src]

pub trait AggregateState {
    fn generation(&self) -> u64;
}

Aggregate state only requires that it expose the generation number. State generation can be thought of as a sequential version. When a previous state is combined with an event to produce a new state, that new state has a generation 1 higher than the previous.

Required Methods

Implementors