Check for #[deprecated] attributes
This commit is contained in:
parent
bb8c93ddc1
commit
509a1c3b7b
7 changed files with 124 additions and 7 deletions
|
@ -144,6 +144,13 @@ Serde docs: [container](https://serde.rs/container-attrs.html#deny_unknown_field
|
|||
|
||||
Set on a variant or field to generate this field's schema using the given function. This function must be callable as `fn(&mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema`.
|
||||
|
||||
<h3 id="deprecated">
|
||||
|
||||
`#[deprecated]`
|
||||
</h3>
|
||||
|
||||
Set the Rust build-in [`deprecated`](https://doc.rust-lang.org/edition-guide/rust-2018/the-compiler/an-attribute-for-deprecation.html) attribute on a struct, enum, field or variant to set the generated schema's `deprecated` keyword to `true`.
|
||||
|
||||
<h3 id="doc">
|
||||
|
||||
Doc Comments (`#[doc = "..."]`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue