pub struct ParseOutput {
pub bytes: Vec<u8>,
pub diagnostics: Vec<Diagnostic>,
pub children: Vec<ParsedChild>,
pub artifacts: Vec<ParsedArtifact>,
pub projection: ProjectionHint,
}Fields§
§bytes: Vec<u8>§diagnostics: Vec<Diagnostic>§children: Vec<ParsedChild>§artifacts: Vec<ParsedArtifact>Additional artifacts to publish on the parsed node itself, beyond the
primary bytes artifact (whose format is the descriptor’s output).
This is the channel for a second artifact on a node — e.g. a
parser_metadata_v1 bag riding alongside a tabular_v1 leaf, or on a
container that publishes no primary bytes. Each rides as its own
format, diffed independently by a format-matched writer.
projection: ProjectionHintProjection overlay for the node being parsed. A container parse (one that
emits children and no parent artifact) uses this to name what kind of
container the node is — e.g. item_type("SQLite database") — since the
node would otherwise inherit only an extension-based guess. Fields set
here win over the node’s existing projection (see
ProjectionHint::overlay_from).
Trait Implementations§
Source§impl Clone for ParseOutput
impl Clone for ParseOutput
Source§fn clone(&self) -> ParseOutput
fn clone(&self) -> ParseOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more