Skip to main content

parse_value

Function parse_value 

Source
pub fn parse_value(text: &str) -> Result<Parameter, CliError>
Expand description

Turns the JSON a user typed into a Parameter.

ยงErrors

CliError::BadArgument when the text is not JSON at all, is a shape the protocol has no variant for (null, a nested object), or is a mixed-type array.