[][src]Trait eventually_core::aggregate::Identifiable

pub trait Identifiable {
    type Id: Eq;
    fn id(&self) -> Self::Id;
}

A trait for data structures that can be identified by an id.

Associated Types

type Id: Eq

Type of the data id. An id must support total equality.

Loading content...

Required methods

fn id(&self) -> Self::Id

Data structure id accessor.

Loading content...

Implementations on Foreign Types

impl<State> Identifiable for Option<State> where
    State: Identifiable,
    State::Id: Default
[src]

type Id = State::Id

Loading content...

Implementors

impl<T> Identifiable for AggregateRoot<T> where
    T: Aggregate
[src]

type Id = AggregateId<T>

Loading content...