pub struct Schema {
pub root: StructDef,
pub enums: HashMap<String, EnumDef>,
pub aliases: HashMap<String, Spanned<SchemaType>>,
}Expand description
The top-level schema produced by parsing a .ronschema file.
Fields§
§root: StructDefThe root struct definition.
enums: HashMap<String, EnumDef>Named enum definitions, keyed by name for O(1) lookup during validation.
aliases: HashMap<String, Spanned<SchemaType>>Type aliases, keyed by name. Stored as-is (not expanded) for better error messages.
Trait Implementations§
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more