Update docs for v0.7.2
This commit is contained in:
parent
60b1b27157
commit
08f7fa44a7
1 changed files with 3 additions and 3 deletions
|
@ -58,12 +58,12 @@ Serde docs: [container](https://serde.rs/container-attrs.html#rename_all) / [var
|
||||||
|
|
||||||
<h3 id="tag">
|
<h3 id="tag">
|
||||||
|
|
||||||
`#[serde(tag = "type")]` / `#[schemars(tag = "type")]` / `#[serde(untagged)]` / `#[schemars(untagged)]`
|
`#[serde(tag = "type")]` / `#[schemars(tag = "type")]` / `#[serde(tag = "t", content = "c")]` / `#[schemars(tag = "t", content = "c")]` / `#[serde(untagged)]` / `#[schemars(untagged)]`
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
Set on an enum to generate the schema for the [internally tagged](https://serde.rs/enum-representations.html#internally-tagged) or [untagged](https://serde.rs/enum-representations.html#untagged) representation of this enum. Schemars does not currently support the adjacently tagged representation ([#4](https://github.com/GREsau/schemars/issues/4)).
|
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) / [`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)
|
||||||
|
|
||||||
<h3 id="default">
|
<h3 id="default">
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue