pub trait OldEvent: Display + Eq + PartialEq + Storable + 'static {
    // Required methods
    fn handle(&self) -> &MyHandle;
    fn version(&self) -> u64;
}

Required Methods§

source

fn handle(&self) -> &MyHandle

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

source

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.

Object Safety§

This trait is not object safe.

Implementors§