diff --git a/docs/1.1-attributes.md b/docs/1.1-attributes.md index eb4b8ca..9b44aee 100644 --- a/docs/1.1-attributes.md +++ b/docs/1.1-attributes.md @@ -22,7 +22,7 @@ Serde also allows setting `#[serde(...)]` attributes which change how types are 1. [Supported Serde Attributes](#supported-serde-attributes) - [`rename`](#rename) - [`rename_all`](#rename_all) - - [`tag` / `untagged`](#tag) + - [`tag` / `content` / `untagged`](#tag) - [`default`](#default) - [`skip`](#skip) - [`skip_serializing`](#skip_serializing) @@ -56,14 +56,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(tag = "type")]` / `#[schemars(tag = "type")]` / `#[serde(tag = "t", content = "c")]` / `#[schemars(tag = "t", content = "c")]` / `#[serde(untagged)]` / `#[schemars(untagged)]` +`#[serde(tag = "type")]` / `#[schemars(tag = "type")]`
+`#[serde(tag = "t", content = "c")]` / `#[schemars(tag = "t", content = "c")]`
+`#[serde(untagged)]` / `#[schemars(untagged)]`

Set on an enum to generate the schema for the [internally tagged](https://serde.rs/enum-representations.html#internally-tagged), [adjacently tagged](https://serde.rs/enum-representations.html#adjacently-tagged), or [untagged](https://serde.rs/enum-representations.html#untagged) representation of this enum. -Serde docs: [`tag`](https://serde.rs/container-attrs.html#tag) / [`tag`/`content`](https://serde.rs/container-attrs.html#tag--content) / [`untagged`](https://serde.rs/container-attrs.html#untagged) +Serde docs: [`tag`](https://serde.rs/container-attrs.html#tag) / [`tag`+`content`](https://serde.rs/container-attrs.html#tag--content) / [`untagged`](https://serde.rs/container-attrs.html#untagged)