pub trait JsonEncodeExtwhere
    Self: Serialize,{
    // Required methods
    fn to_json(&self) -> Result<Value, Error>;
    fn to_json_string(&self) -> Result<String, Error>;
    fn to_json_pretty_string(&self) -> Result<String, Error>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> JsonEncodeExt for Twhere T: Serialize,