Expand description
Schema building from Rust types
This module provides the BuildSchema trait and SchemaBuilder for
generating schema definitions from Rust types, either manually or via derive.
§Example
ⓘ
use eure_schema::{BuildSchema, SchemaDocument};
#[derive(BuildSchema)]
#[eure(type_name = "user")]
struct User {
name: String,
age: Option<u32>,
}
let schema = SchemaDocument::of::<User>();Structs§
- Schema
Builder - Builder for constructing schema documents from Rust types.
Traits§
- Build
Schema - Trait for types that can build their schema representation.