From f639598314769e85c0efb8c77b2e3ebfd2586b26 Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Tue, 27 Aug 2024 18:04:38 +0100 Subject: [PATCH] Update attribute docs --- docs/_includes/attributes.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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")]`