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§
sourcefn request_json<U: DeserializeOwned>(
&self,
target: T,
) -> impl Future<Output = Result<U, Error>>
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.