[][src]Trait krill::commons::eventsourcing::Event

pub trait Event: Display + Eq + PartialEq + Storable + 'static {
    fn handle(&self) -> &Handle;
fn version(&self) -> u64; }

Required methods

fn handle(&self) -> &Handle

Identifies the aggregate, useful when storing and retrieving the event.

fn version(&self) -> u64

The version of the aggregate that this event updates. An aggregate that is currently at version x, will get version x + 1, when the event for version x is applied.

Loading content...

Implementors

impl<E: Display + Eq + PartialEq + Storable + 'static> Event for StoredEvent<E>[src]

Loading content...