pub trait TypedResponse: Sized {
// Required method
fn from_response(response: &Response) -> Result<Self>;
}
Expand description
Trait for typed responses that can be parsed from HTTP responses
Required Methods§
Sourcefn from_response(response: &Response) -> Result<Self>
fn from_response(response: &Response) -> Result<Self>
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.