#[derive(TreeDisplay)]
{
// Attributes available to this derive:
#[tree]
}
Expand description
Derives TreeDisplay for structs and enums.
The following attributes can be applied to struct or enum variant fields:
#[tree(map)]- Apply a custom mapper fromContext#[tree(ignore)]- Exclude the field from the tree#[tree(label = "...")]- Override the field’s display label#[tree(unlabeled)]- Display the field without a label