Skip to main content

from_value_pathaware

Function from_value_pathaware 

Source
pub fn from_value_pathaware<T>(value: &Value) -> Result<T, Error>
Expand description

Parse value into T and if there’s a structure mismatch, you get an error message that includes a JSON pointer path to where the mismatch occurred.