Expand description
Attribute macro #[persistent] — injects id, generates new(), typed query
builders, replace/upsert helpers, and implements the trait.
§Architecture patterns for large codebases
#[persistent] is designed to be used sparingly — only on aggregates and
domain entities that represent state worth saving. Child structs nested
inside a persistent root should be plain Serialize + Deserialize values.
Attribute Macros§
- persistent
- Marks a struct as persistable.