Skip to main content

Crate ddd_toolkit_macro

Crate ddd_toolkit_macro 

Source
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§

EntityId
Derives EntityId (and everything #[derive(ValueObject)] derives) for a single-field tuple struct.
EnumVo
Derives EnumVo for a fieldless enum.
SecretVo
Derives SecretVo for a single-field tuple struct, with a Debug impl that always redacts the wrapped value.
ValueObject
Derives ValueObject and Wrapped for a single-field tuple struct. See the crate-level docs for supported #[vo(...)] attributes.