Skip to main content

Module generate

Module generate 

Source
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, how Options should be represented).
  • SchemaGenerator, which manages the generation of a schema document.

Structs§

SchemaGenerator
The main type used to generate JSON Schemas.
SchemaSettings
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 a SchemaSettings.