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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.