Add separate docs for v0.8/v1
This commit is contained in:
parent
3150f98fc8
commit
d511d447f7
61 changed files with 1620 additions and 58 deletions
12
docs/_v0/examples/3-schemars_attrs.md
Normal file
12
docs/_v0/examples/3-schemars_attrs.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
title: Using Schemars Attributes
|
||||
parent: Examples
|
||||
nav_order: 3
|
||||
summary: "Deriving JsonSchema on types that use #[schemars] attributes to customise serialization behaviour."
|
||||
---
|
||||
|
||||
# Using Serde Attributes
|
||||
|
||||
`#[serde(...)]` attributes can be overriden (or replaced) with `#[schemars(...)]` attributes, which behave identically. You may find this useful if you want to change the generated schema without affecting Serde's behaviour, or if you're just not using Serde.
|
||||
|
||||
{% include example_v0.md name="schemars_attrs" %}
|
Loading…
Add table
Add a link
Reference in a new issue