pub trait JsonProviderType<T: Target>: ProviderType<T> {
    // Required method
    fn request_json<U: DeserializeOwned>(
        &self,
        target: T
    ) -> impl Future<Output = Result<U, Error>>;
}

Required Methods§

source

fn request_json<U: DeserializeOwned>( &self, target: T ) -> impl Future<Output = Result<U, Error>>

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,