pub fn scan_stream(payload: &str) -> StreamScanExpand description
Scan a whole stream: header, per-line JSON validity, record count.
Line-shape checks beyond JSON-object are the caller’s business (the
import tool deserializes Memory; backup validates files differently).
The header line, when present, must be the first non-empty line.