Check for #[deprecated] attributes

This commit is contained in:
Graham Esau 2020-05-16 16:44:44 +01:00
parent bb8c93ddc1
commit 509a1c3b7b
7 changed files with 124 additions and 7 deletions

View file

@ -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 = "..."]`)