Skip to main content

rich_from_value

Function rich_from_value 

Source
pub fn rich_from_value(v: Value) -> Result<Rich, String>
Expand description

A payload from JSON, made canonical (Rich::canonicalize) and validated, as Rich::parse does with text.

§Errors

What’s invalid, as a message for the user.