pub enum SchemaNode {
Scalar(ScalarKind),
Enum(Vec<String>),
List(u32),
Record(Vec<FieldNode>),
}Expand description
One node of a flattened Schema. Child links are indices into the node
list flatten_schema returns.
Variants§
Scalar(ScalarKind)
Schema::Scalar; a leaf.
Enum(Vec<String>)
Schema::Enum; a leaf carrying the allowed strings.
List(u32)
Schema::List; the index of the element schema’s node.
Record(Vec<FieldNode>)
Schema::Record; one FieldNode per field, in declaration order.
Trait Implementations§
Source§impl Clone for SchemaNode
impl Clone for SchemaNode
Source§fn clone(&self) -> SchemaNode
fn clone(&self) -> SchemaNode
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 moreSource§impl Debug for SchemaNode
impl Debug for SchemaNode
impl Eq for SchemaNode
Source§impl PartialEq for SchemaNode
impl PartialEq for SchemaNode
impl StructuralPartialEq for SchemaNode
Auto Trait Implementations§
impl Freeze for SchemaNode
impl RefUnwindSafe for SchemaNode
impl Send for SchemaNode
impl Sync for SchemaNode
impl Unpin for SchemaNode
impl UnsafeUnpin for SchemaNode
impl UnwindSafe for SchemaNode
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