Skip to content

Commit

Permalink
Update attribute docs
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Aug 27, 2024
1 parent 846c49e commit f639598
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/_includes/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

<h3 id="rename_all_fields">

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

</h3>

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)

<h3 id="tag" style="line-height: 1.5">

`#[serde(tag = "type")]` / `#[schemars(tag = "type")]` <br />
Expand Down

0 comments on commit f639598

Please sign in to comment.