Skip to main content

parse_persisted_item

Function parse_persisted_item 

Source
pub fn parse_persisted_item(body: &str) -> Result<ReportItem, String>
Expand description

Parse a single persisted-form report item — header line (<kind> <name>) followed by indented directive lines, as produced by ReportItem::to_yaml_directive_string. Used by the session-db fallback path in nmbrs report so the directive-form knowledge lives in one place.