[][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

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.