pub enum NodeData {
Child(Child),
Diagnostic(Diagnostic),
DataType(Arc<DataType>),
Comment(Comment),
}Expand description
Information nodes for a parsed protobuf message.
Variants
Child(Child)
A reference to a child node in the tree.
Diagnostic(Diagnostic)
Indicates that parsing/validating this message resulted in some diagnostic message being emitted. The secondary error level is the modified level via
DataType(Arc<DataType>)
Provides (intermediate) type information for this node. Depending on the message, this may be a struct or named struct representing a schema, or it may represent the type of some scalar expression. Multiple TypeInfo nodes may be present, in particular for relations that perform multiple operations in one go (for example read, project, emit). The TypeInfo and operation description *Field nodes are then ordered by data flow. In particular, the last TypeInfo node always represents the type of the final result of a node.
Comment(Comment)
Used for adding unstructured additional information to a message, wherever this may aid human understanding of a message.
Trait Implementations
impl StructuralPartialEq for NodeData
Auto Trait Implementations
impl !RefUnwindSafe for NodeData
impl Send for NodeData
impl Sync for NodeData
impl Unpin for NodeData
impl !UnwindSafe for NodeData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more