pub struct ParsingTraceStep {
pub step_number: usize,
pub description: String,
pub input: Option<String>,
pub result: Option<String>,
pub success: bool,
pub details: String,
}Expand description
Represents a single step in the parsing trace log.
Fields§
§step_number: usizeStep number in the trace
description: StringDescription of what was attempted
input: Option<String>Input content for this step
result: Option<String>Result/output of this step
success: boolWhether this step succeeded
details: StringAdditional details or error message
Implementations§
Source§impl ParsingTraceStep
impl ParsingTraceStep
Sourcepub fn with_input(self, input: &str) -> Self
pub fn with_input(self, input: &str) -> Self
Set the input for this step.
Sourcepub fn with_result(self, result: &str) -> Self
pub fn with_result(self, result: &str) -> Self
Set the result for this step.
Sourcepub const fn with_success(self, success: bool) -> Self
pub const fn with_success(self, success: bool) -> Self
Set whether this step succeeded.
Sourcepub fn with_details(self, details: &str) -> Self
pub fn with_details(self, details: &str) -> Self
Set additional details.
Trait Implementations§
Source§impl Clone for ParsingTraceStep
impl Clone for ParsingTraceStep
Source§fn clone(&self) -> ParsingTraceStep
fn clone(&self) -> ParsingTraceStep
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsingTraceStep
impl RefUnwindSafe for ParsingTraceStep
impl Send for ParsingTraceStep
impl Sync for ParsingTraceStep
impl Unpin for ParsingTraceStep
impl UnwindSafe for ParsingTraceStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more