pub struct SchemaContext {
pub types: HashMap<String, TypeDef>,
pub fields: HashMap<(String, String), FieldType>,
}Expand description
Schema context for compile-time validation
Fields§
§types: HashMap<String, TypeDef>Type definitions: type_name -> fields
fields: HashMap<(String, String), FieldType>Field types: (type_name, field_name) -> field_type
Trait Implementations§
Source§impl Clone for SchemaContext
impl Clone for SchemaContext
Source§fn clone(&self) -> SchemaContext
fn clone(&self) -> SchemaContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SchemaContext
impl RefUnwindSafe for SchemaContext
impl Send for SchemaContext
impl Sync for SchemaContext
impl Unpin for SchemaContext
impl UnsafeUnpin for SchemaContext
impl UnwindSafe for SchemaContext
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