pub struct ParseTrace {
pub strategies_tried: Vec<&'static str>,
pub repaired: bool,
pub repair_actions: Vec<String>,
pub extracted_span: Option<(usize, usize)>,
pub warnings: Vec<String>,
}Expand description
Diagnostic trace capturing the execution path of a parse operation.
Returned by _with_trace variants of parse functions. Records which
strategies were attempted, whether repair was applied, and the byte span
of the extracted content.
Fields§
§strategies_tried: Vec<&'static str>Names of strategies attempted, in order.
repaired: boolWhether JSON repair was applied to produce the final result.
repair_actions: Vec<String>Descriptions of repair actions applied (e.g., “remove_trailing_commas”).
extracted_span: Option<(usize, usize)>Byte offset span (start, end) of the extracted content within the
preprocessed input, if applicable.
warnings: Vec<String>Non-fatal warnings encountered during parsing.
Trait Implementations§
Source§impl Clone for ParseTrace
impl Clone for ParseTrace
Source§fn clone(&self) -> ParseTrace
fn clone(&self) -> ParseTrace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseTrace
impl Debug for ParseTrace
Source§impl Default for ParseTrace
impl Default for ParseTrace
Source§fn default() -> ParseTrace
fn default() -> ParseTrace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParseTrace
impl RefUnwindSafe for ParseTrace
impl Send for ParseTrace
impl Sync for ParseTrace
impl Unpin for ParseTrace
impl UnsafeUnpin for ParseTrace
impl UnwindSafe for ParseTrace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more