Skip to main content

parse

Function parse 

Source
pub fn parse(input: &[u8]) -> Result<StatusContext, ParseError>
Expand description

Parse a statusline JSON payload into a StatusContext.

Equivalent to parse_with_opts with ParseOpts::default. Use this for the common case; pass opts when you need to force a tool (tests, plugin harnesses, sample fixtures).

§Errors

See parse_with_opts.