AggregateRoot

Derive Macro AggregateRoot 

Source
#[derive(AggregateRoot)]
{
    // Attributes available to this derive:
    #[aggregate_root]
}
Expand description

Proc macro for deriving the AggregateRoot trait.

Use the #[aggregate_root(domain_events)] attribute to tag the domain events field of the aggregate root, which is assumed to be a Vec.