Expand description
File-level schema builder.
Parses every struct in a capability source file to build a registry of
name → PyroSchema, then resolves field types against that registry so
that nested user-defined structs produce correct Group(fields) instead of
opaque empty groups.
§Usage
ⓘ
let builder = SchemaBuilder::from_file(&syn_file);
let pyro_type = builder.resolve_type(&syn_ty);
let schema = builder.schema_for("MyStruct").unwrap();Structs§
- Schema
Builder - A file-level registry of struct schemas.