Skip to main content

Module aggregate

Module aggregate 

Source
Expand description

Command-side domain primitives.

This module defines the building blocks for aggregates: state reconstruction (Apply) and command handling (Handle). The #[derive(Aggregate)] macro lives here to keep domain ergonomics in one spot.

Traitsยง

Aggregate
Command-side entities that produce domain events.
Apply
Mutate an aggregate with a domain event.
Handle
Entry point for command handling.