#[derive(Structio)]
{
// Attributes available to this derive:
#[structio]
}
Expand description
Declare a struct’s or enum’s schema from its definition.
See structio’s documentation for the attributes.
In short: #[structio(rename_all = "camelCase")], #[structio(tag = "kind")], #[structio(array)], #[structio(json)] or #[structio(beve)]
on the type; #[structio(rename = "key")], #[structio(skip)],
#[structio(required)] and #[structio(with = "Adapter")] on a field;
#[structio(rename = "name")] on a variant.