pub type JsonBacktraceBuf<T> = Vec<JsonBacktraceFrame<T>>;Expand description
Describes the exact location of a JSON fragment within a document, or across several documents.
A backtrace is a sequence of JsonBacktraceFrames, ordered from the
outermost file to the innermost. A single frame is enough to describe a
fragment’s position within one file (an object key/value, an array
item, etc., accumulated as a JsonFragmentPathBuf). Multiple frames
are needed when resolving that fragment required crossing into another
file along the way.
A JsonBacktraceBuf is normally not built by hand: use
JsonBacktraceBuilder to accumulate navigation steps cheaply while
walking a document, then call JsonBacktraceBuilder::build to
produce the final, owned value. Pair it with a value or error using
JsonLocated (or the JsonAt/JsonErrorAt helper traits).
Aliased Type§
pub struct JsonBacktraceBuf<T> { /* private fields */ }