pub struct ParseResult {
pub events: Vec<Event>,
pub malformed: Vec<MalformedLine>,
}Expand description
Result of parsing events from a JSONL file.
Contains both successfully parsed events and information about lines that failed to parse. This supports backpressure validation by allowing the caller to respond to malformed events.
Fields§
§events: Vec<Event>Successfully parsed events.
malformed: Vec<MalformedLine>Lines that failed to parse.
Trait Implementations§
Source§impl Clone for ParseResult
impl Clone for ParseResult
Source§fn clone(&self) -> ParseResult
fn clone(&self) -> ParseResult
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 moreSource§impl Debug for ParseResult
impl Debug for ParseResult
Source§impl Default for ParseResult
impl Default for ParseResult
Source§fn default() -> ParseResult
fn default() -> ParseResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnsafeUnpin for ParseResult
impl UnwindSafe for ParseResult
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