Trait reqwest_enum::provider::JsonProviderType
source · 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§
sourcefn 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,
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.