Expand description
Derive macros for ddd-toolkit-core’s
value-object-shaped traits: ValueObject, EntityId, SecretVo, and
EnumVo. Works alongside ddd-toolkit-core directly, or through the
ddd-toolkit facade - see this crate’s
README for the full list of supported #[vo(...)] attributes.
Derive Macros§
- Entity
Id - Derives
EntityId(and everything#[derive(ValueObject)]derives) for a single-field tuple struct. - EnumVo
- Derives
EnumVofor a fieldless enum. - Secret
Vo - Derives
SecretVofor a single-field tuple struct, with aDebugimpl that always redacts the wrapped value. - Value
Object - Derives
ValueObjectandWrappedfor a single-field tuple struct. See the crate-level docs for supported#[vo(...)]attributes.