pub struct SchemaSet {
pub root: Schema,
pub registry: SchemaRegistry,
}Expand description
A schema set: the root schema (with Vars resolved) + the registry.
Fields§
§root: Schema§registry: SchemaRegistryImplementations§
Source§impl SchemaSet
impl SchemaSet
Sourcepub fn from_schemas(schemas: Vec<Schema>) -> Self
pub fn from_schemas(schemas: Vec<Schema>) -> Self
Build a SchemaSet from a raw list of schemas (e.g. received from the wire). The root is the last schema. Its kind is used as-is (no Var resolution).
Sourcepub fn from_root_and_schemas(root: TypeRef, schemas: Vec<Schema>) -> Self
pub fn from_root_and_schemas(root: TypeRef, schemas: Vec<Schema>) -> Self
Build a SchemaSet from extracted root/schemas data. The root TypeRef is used to resolve any Var references in the root schema.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaSet
impl RefUnwindSafe for SchemaSet
impl Send for SchemaSet
impl Sync for SchemaSet
impl Unpin for SchemaSet
impl UnsafeUnpin for SchemaSet
impl UnwindSafe for SchemaSet
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