pub trait ApiResponseExt {
// Required method
fn into_api_result<T, E>(self) -> Result<Result<T, E>, Error>
where T: DeserializeOwned,
E: DeserializeOwned;
}Expand description
Extension trait for Response.
Required Methods§
Sourcefn into_api_result<T, E>(self) -> Result<Result<T, E>, Error>where
T: DeserializeOwned,
E: DeserializeOwned,
fn into_api_result<T, E>(self) -> Result<Result<T, E>, Error>where
T: DeserializeOwned,
E: DeserializeOwned,
See into_api_result.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ApiResponseExt for Response
Available on crate feature
json only.