[][src]Trait domain_patterns::models::AggregateRoot

pub trait AggregateRoot: Entity {
    type Events: DomainEvent;
    type Error;
}

Associated Types

type Events: DomainEvent

This type alias should point to an enum of events that the aggregate root will create and publish.

type Error

This type alias should point to the root error type for the crate.

Loading content...

Implementors

Loading content...