pub fn given_params(
fields: &[String],
json: Option<&str>,
) -> Result<Option<Map<String, Value>>, AppError>Expand description
A run’s parameters from -p fields (key=value a text, key:=json any JSON value, the
field syntax of the in-task CLI) or --params (one JSON object); None when none given.
§Errors
AppError::BadArgument for a field without =, an empty or repeated name, JSON that
doesn’t read, or --params that isn’t an object.