#[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(transparent)],
#[structio(json)], #[structio(beve)] or #[structio(write_only)] on
the type; #[structio(rename = "key")], #[structio(alias = "key")],
#[structio(skip)], #[structio(required)] and #[structio(with = "Adapter")] on a field; #[structio(rename = "name")] and
#[structio(alias = "name")] on a variant.