diff --git a/docs/_includes/attributes.md b/docs/_includes/attributes.md index bd82a9a..3661634 100644 --- a/docs/_includes/attributes.md +++ b/docs/_includes/attributes.md @@ -14,6 +14,7 @@ TABLE OF CONTENTS 1. [Supported Serde Attributes](#supported-serde-attributes) - [`rename`](#rename) - [`rename_all`](#rename_all) + - [`rename_all_fields`](#rename_all_fields) - [`tag` / `content` / `untagged`](#tag) - [`default`](#default) - [`skip`](#skip) @@ -67,6 +68,16 @@ Set on a struct, enum or variant to rename all fields according to the given cas Serde docs: [container](https://serde.rs/container-attrs.html#rename_all) / [variant](https://serde.rs/variant-attrs.html#rename_all) +

+ +`#[serde(rename_all_fields = "...")]` / `#[schemars(rename_all_fields = "...")]` + +

+ +Set on an enum to rename all fields of all struct-style variants according to the given case convention (see the Serde docs for details). + +Serde docs: [container](https://serde.rs/container-attrs.html#rename_all) +

`#[serde(tag = "type")]` / `#[schemars(tag = "type")]`