Update docs and changelog
This commit is contained in:
parent
c59e5b5e1c
commit
4f14c1a74c
2 changed files with 13 additions and 0 deletions
|
@ -35,6 +35,7 @@ TABLE OF CONTENTS
|
|||
- [`skip_deserializing`](#skip_deserializing)
|
||||
- [`flatten`](#flatten)
|
||||
- [`with`](#with)
|
||||
- [`bound`](#bound)
|
||||
1. [Supported Validator Attributes](#supported-validator-attributes)
|
||||
- [`email` / `phone` / `url`](#email-phone-url)
|
||||
- [`length`](#length)
|
||||
|
@ -160,6 +161,15 @@ Set on a newtype struct or a braced struct with one field to make the struct's g
|
|||
|
||||
Serde docs: [container](https://serde.rs/container-attrs.html#transparent)
|
||||
|
||||
<h3 id="bound">
|
||||
|
||||
`#[schemars(bound = "...")]`
|
||||
</h3>
|
||||
|
||||
Where-clause for the JsonSchema impl. This replaces any trait bounds inferred by schemars. Schemars does **not** use trait bounds from `#[serde(bound)]` attributes.
|
||||
|
||||
Serde docs: [container](https://serde.rs/container-attrs.html#bound)
|
||||
|
||||
</div>
|
||||
|
||||
## Supported Validator Attributes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue