Expand description
schema_oxidation
: conversion from JSON schemas to Rust objects.
This crate provides a way to automatically generate Rust objects (with serialization / deserialization provided by serde) from a pre-existing JSON schema. Currently only fairly basic support is present, though it is sufficient for simple purposes.
The schema JSON can either be loaded from a file located in the project’s source tree, or from a string. The latter is primarily useful for testing purposes, though they both function identically under the hood.
Macros§
- generate_
from_ file - Generate schema objects based on JSON loaded from a file, but is otherwise identical to generate_from_string!.
- generate_
from_ string - Generate schema objects from a specified string.