329 B
329 B
title | parent | nav_order | summary |
---|---|---|---|
Deriving JsonSchema | Examples | 1 | Deriving JsonSchema on a struct and enum. |
Deriving JsonSchema
This is the simplest usage of Schemars. Both types are made to derive JsonSchema
, and the schema_for!
macro is used to generate the schema itself.
{% include example.md name="main" %}