pub struct ParseResult {
pub events: Vec<Event>,
pub position: FilePosition,
pub keys: HashSet<String>,
pub lines_parsed: u64,
pub lines_skipped: u64,
pub parse_errors: u64,
pub session_meta: Option<SessionMeta>,
}Expand description
Result of parsing a Codex session file.
Fields§
§events: Vec<Event>Events extracted from the session file
position: FilePositionNew file position after parsing
keys: HashSet<String>Dedup keys seen during this parse
lines_parsed: u64Number of lines parsed into events
lines_skipped: u64Number of lines skipped (non-event entries)
parse_errors: u64Number of lines that failed to parse as JSON
session_meta: Option<SessionMeta>Session metadata if found
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin 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