pub struct Schema {
pub types: BTreeMap<String, ObjectType>,
pub unions: BTreeMap<String, UnionType>,
}Fields§
§types: BTreeMap<String, ObjectType>§unions: BTreeMap<String, UnionType>Tagged unions, kept beside the object types rather than inside them.
A union is a choice between objects, not a kind of object, and the two
share one namespace: declares is what answers “is this name taken”.
Implementations§
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