allsource_core/domain/value_objects/
mod.rs

1/// Value Objects Module
2///
3/// Value objects are immutable objects defined by their value, not their identity.
4/// They encapsulate domain concepts and enforce business rules through validation.
5///
6/// Characteristics of value objects:
7/// - Immutable
8/// - Defined by value equality (not identity)
9/// - Self-validating
10/// - No lifecycle
11/// - Can be freely copied/cloned
12///
13/// Examples: TenantId, EventType, EntityId, PartitionKey, Money, Email, etc.
14
15pub mod tenant_id;
16pub mod event_type;
17pub mod entity_id;
18pub mod partition_key;
19
20pub use tenant_id::TenantId;
21pub use event_type::EventType;
22pub use entity_id::EntityId;
23pub use partition_key::PartitionKey;