Trait JsonDecodeExt

Source
pub trait JsonDecodeExt {
    // Required method
    fn parse_json<T>(&self) -> Result<T, Error>
       where T: DeserializeOwned,
             Self: AsRef<[u8]>;
}

Required Methods§

Source

fn parse_json<T>(&self) -> Result<T, Error>
where T: DeserializeOwned, Self: AsRef<[u8]>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> JsonDecodeExt for T
where T: AsRef<[u8]>,