Expand description
Code generation: schema → source in a target language.
A CodeGenBackend takes the intermediate JsonSchema and returns generated
source as bytes. The CLI matches on the language argument and calls the
appropriate backend (e.g. the Rust backend).
Structs§
- Code
GenSettings - Language-agnostic code generation settings.
- Code
GenSettings Builder - Builder for
CodeGenSettings. - Generate
Rust Output - Output of Rust code generation: optional shared buffer plus one buffer per input schema.
- Rust
Backend - Backend that emits Rust structs (serde-compatible).
Enums§
- Code
GenError - Errors that can occur during code generation.
- Dedupe
Mode - Whether and how to deduplicate structurally identical object schemas across and within schemas.
- Model
Name Source - How to choose the generated struct/type name when both
titleand property key are available.
Traits§
- Code
GenBackend - Contract for a codegen backend: schemas in,
GenerateRustOutputwith optional shared buffer and per-schema buffers.
Functions§
- generate_
rust - Generate Rust source from one or more parsed schemas.
Type Aliases§
- Code
GenResult - Result type for code generation operations.