pub struct SchemaDef<'a> {
pub name: &'a str,
pub fields: Vec<SchemaField<'a>>,
pub field_enums: HashMap<&'a str, Arc<EnumDef<'a>>>,
}Fields§
§name: &'a str§fields: Vec<SchemaField<'a>>§field_enums: HashMap<&'a str, Arc<EnumDef<'a>>>D18: for each field typed by an enum, the enum resolved at declaration time — so an imported schema validates against the enum that was in scope in its own module, not one that happens to exist at the call site.
Trait Implementations§
impl<'a> StructuralPartialEq for SchemaDef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SchemaDef<'a>
impl<'a> RefUnwindSafe for SchemaDef<'a>
impl<'a> Send for SchemaDef<'a>
impl<'a> Sync for SchemaDef<'a>
impl<'a> Unpin for SchemaDef<'a>
impl<'a> UnsafeUnpin for SchemaDef<'a>
impl<'a> UnwindSafe for SchemaDef<'a>
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