#[derive(Diffable)]
{
// Attributes available to this derive:
#[daft]
}
Available on crate feature
derive only.Expand description
Derive macro for the Diffable trait.
The behavior of this macro varies by type:
- For structs, this macro generates a corresponding recursive (eager)
diff type by default. A non-recursive (lazy) diff can be generated by
annotating the struct overall with
#[daft(leaf)]. - For enums and unions, this macro generates a non-recursive (lazy) diff.
For more information, see the crate-level documentation.