Skip to main content

parse_report

Function parse_report 

Source
pub fn parse_report<T: DeserializeOwned>(text: &str) -> Option<T>
Expand description

Parse a report from a session’s final text: strict whole-text parse, then the first-{-to-last-} substring, then a fenced ```json block.

Lenient on purpose, for the worker/validator REPORT channel where a report buried in prose is better recovered than dropped. Decision turns must use parse_decision instead.