pub trait JsonProviderType<T: Target>: ProviderType<T> {
    // Required method
    fn request_json<'life0, 'async_trait, U>(
        &'life0 self,
        target: T
    ) -> Pin<Box<dyn Future<Output = Result<U, Error>> + Send + 'async_trait>>
       where U: 'async_trait + DeserializeOwned,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn request_json<'life0, 'async_trait, U>( &'life0 self, target: T ) -> Pin<Box<dyn Future<Output = Result<U, Error>> + Send + 'async_trait>>
where U: 'async_trait + DeserializeOwned, Self: 'async_trait, 'life0: 'async_trait,

request and deserialize response to json using serde

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> JsonProviderType<T> for Provider<T>
where T: Target + Send,