[][src]Module domain_patterns::models

Models is a module that holds traits which define behaviors of various facets of a domain model, such as traits that define characteristics of entities and value objects.

Traits

AggregateRoot
Applier

Applier should be implemented by aggregate roots in systems where you want to apply messages (commands or events) to mutate an aggregate.

Entity

A trait that defines an Entity, which is any object with a unique and globally persistent identity.

ValueObject

A trait that defines a ValueObject which is an immutable holder of value, that validates that value against certain conditions before storing it.