pub trait Response{
// Provided methods
fn json<D>(&self) -> Result<D>
where D: DeserializeOwned { ... }
fn text(&self) -> String { ... }
}Expand description
HTTP response.
Provided Methods§
Sourcefn json<D>(&self) -> Result<D>where
D: DeserializeOwned,
fn json<D>(&self) -> Result<D>where
D: DeserializeOwned,
Deserialize the response into a JSON object.
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.