pub trait JsonExt {
// Required methods
fn parse_json<'r, 'life0, 'async_trait, T>(
&'r mut self,
parser: &'life0 JsonParser,
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
where T: 'async_trait + Deserialize<'r>,
Self: 'async_trait,
'r: 'async_trait,
'life0: 'async_trait;
fn json<'r, 'async_trait, T>(
&'r mut self,
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
where T: 'async_trait + Deserialize<'r>,
Self: 'async_trait,
'r: 'async_trait;
}Required Methods§
fn parse_json<'r, 'life0, 'async_trait, T>(
&'r mut self,
parser: &'life0 JsonParser,
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>where
T: 'async_trait + Deserialize<'r>,
Self: 'async_trait,
'r: 'async_trait,
'life0: 'async_trait,
fn json<'r, 'async_trait, T>(
&'r mut self,
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>where
T: 'async_trait + Deserialize<'r>,
Self: 'async_trait,
'r: 'async_trait,
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.