Expand description
JSON Schema generator and settings.
This module is useful if you want more control over how the schema generated than the schema_for!
macro gives you.
There are two main types in this module:
SchemaSettings
, which defines what JSON Schema features should be used when generating schemas (for example, howOption
s should be represented).SchemaGenerator
, which manages the generation of a schema document.
Structs§
- Schema
Generator - The main type used to generate JSON Schemas.
- Schema
Settings - Settings to customize how Schemas are generated.
Enums§
- Contract
- A setting to specify whether generated schemas should describe how types are serialized or deserialized.
Traits§
- GenTransform
- A
Transform
which implements additional traits required to be included in aSchemaSettings
.