Skip to main content

parse_line_partial

Function parse_line_partial 

Source
pub fn parse_line_partial(
    line: &str,
) -> Result<PartialParsedLine<'_>, ParseError>
Expand description

Parse a TSJSON line into a PartialParsedLine without deserializing the JSON payload or verifying the event hash.

This is the fast path for filtering and scanning. It validates:

  • Field count (exactly 8)
  • wall_ts_us is a valid i64
  • event_type is a known variant

It does not validate: agent format, ITC format, parent hashes, item ID format, JSON validity, or event hash.

ยงErrors

Returns ParseError if the line cannot be parsed.