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