pub struct SchemaGraph {
pub type_nodes: Vec<SchemaTypeNode>,
pub defs: Vec<SchemaTypeDef>,
pub root: i32,
}Expand description
§============================================================ Schema graph (self-contained type carrier)
A self-contained schema graph. Anywhere a schema travels with a value
(typed pair, oplog custom payload, REST/RPC envelope, public oplog
rendering), the payload owns its own schema-graph — there is no
implicit external registry that consumers must look up.
Fields§
§type_nodes: Vec<SchemaTypeNode>All schema-type nodes used in this graph. Reachable from root
directly (anonymous types) or transitively via defs.
defs: Vec<SchemaTypeDef>Named type definitions in this graph. Indices into this list are
the targets of schema-type-node::ref-type. Ordering is
deterministic (sorted by id).
root: i32Index into type-nodes of the root schema type.
Trait Implementations§
Source§impl Clone for SchemaGraph
impl Clone for SchemaGraph
Source§fn clone(&self) -> SchemaGraph
fn clone(&self) -> SchemaGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaGraph
impl RefUnwindSafe for SchemaGraph
impl Send for SchemaGraph
impl Sync for SchemaGraph
impl Unpin for SchemaGraph
impl UnsafeUnpin for SchemaGraph
impl UnwindSafe for SchemaGraph
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