Skip to main content

Crate marser_trace_schema

Crate marser_trace_schema 

Source
Expand description

AI assistance: this file was written with AI assistance. The maintainer reviewed it and did not find errors.

Types and serde I/O for marser parser trace logs (JSON / JSONL).

Experimental: APIs and serialized trace formats may change between releases; see the crate README on GitHub for the current stability note.

Structs§

NodeTrace
RuleIdentity
RuleSourceMetadata
Call-site metadata for a traced rule (not serialized as a standalone trace value).
TraceLocation
TraceMarkerFailureSnapshot
Compact error context attached to a .trace() End when the inner parse/match failed.
TraceSession
UnsupportedTraceVersion

Enums§

ExplicitMarkerEndOutcome
How the inner parser/matcher finished for an explicit .trace() End event.
NodeTraceKind
NodeTraceStatus
TraceEventKind
TraceFormat
TraceMarkerPhase

Constants§

SCHEMA_VERSION
Version written in the { "trace_version", "nodes", "source_text?" } JSON envelope.
SUPPORTED_TRACE_VERSION_MAX
Highest trace_version value this crate accepts when loading JSON.
SUPPORTED_TRACE_VERSION_MIN
Lowest trace_version value this crate accepts when loading JSON.

Functions§

check_trace_version
Validates trace_version from a JSON object payload.
detect_trace_format
load_json
load_jsonl
load_trace_file