Trait evento::Aggregate

source ·
pub trait Aggregate: Default {
    // Required methods
    fn apply(&mut self, event: &Event);
    fn aggregate_type<'a>() -> &'a str;

    // Provided methods
    fn aggregate_id<I>(id: I) -> String
       where I: Into<String> { ... }
    fn to_id<I>(aggregate_id: I) -> String
       where I: Into<String> { ... }
}

Required Methods§

source

fn apply(&mut self, event: &Event)

source

fn aggregate_type<'a>() -> &'a str

Provided Methods§

source

fn aggregate_id<I>(id: I) -> Stringwhere I: Into<String>,

source

fn to_id<I>(aggregate_id: I) -> Stringwhere I: Into<String>,

Object Safety§

This trait is not object safe.

Implementors§