ParseJson

Trait ParseJson 

Source
pub trait ParseJson {
    // Required method
    fn parse_json_with_data_err<T>(self) -> Result<T, JsonParseError<Self>>
       where T: for<'de> Deserialize<'de>,
             Self: Sized;
}
Expand description

Trait alows parse String or &str to native rust returning JsonParseError with original data which we tried parse.

Required Methods§

Source

fn parse_json_with_data_err<T>(self) -> Result<T, JsonParseError<Self>>
where T: for<'de> Deserialize<'de>, Self: Sized,

Implementations on Foreign Types§

Source§

impl ParseJson for &str

Source§

fn parse_json_with_data_err<T>(self) -> Result<T, JsonParseError<Self>>
where T: for<'de> Deserialize<'de>,

Source§

impl ParseJson for String

Source§

fn parse_json_with_data_err<T>(self) -> Result<T, JsonParseError<Self>>
where T: for<'de> Deserialize<'de>,

Implementors§