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§
- Node
Trace - Rule
Identity - Rule
Source Metadata - Call-site metadata for a traced rule (not serialized as a standalone trace value).
- Trace
Location - Trace
Marker Failure Snapshot - Compact error context attached to a
.trace()End when the inner parse/match failed. - Trace
Session - Unsupported
Trace Version
Enums§
- Explicit
Marker EndOutcome - How the inner parser/matcher finished for an explicit
.trace()End event. - Node
Trace Kind - Node
Trace Status - Trace
Event Kind - Trace
Format - Trace
Marker Phase
Constants§
- SCHEMA_
VERSION - Version written in the
{ "trace_version", "nodes", "source_text?" }JSON envelope. - SUPPORTED_
TRACE_ VERSION_ MAX - Highest
trace_versionvalue this crate accepts when loading JSON. - SUPPORTED_
TRACE_ VERSION_ MIN - Lowest
trace_versionvalue this crate accepts when loading JSON.
Functions§
- check_
trace_ version - Validates
trace_versionfrom a JSON object payload. - detect_
trace_ format - load_
json - load_
jsonl - load_
trace_ file