pub trait MsgPackResponse {
// Required method
async fn msgpack<T>(self) -> Result<T, ClientError>
where T: DeserializeOwned;
}Expand description
Trait to parse MessagePack responses from reqwest library.
Required Methods§
Sourceasync fn msgpack<T>(self) -> Result<T, ClientError>where
T: DeserializeOwned,
async fn msgpack<T>(self) -> Result<T, ClientError>where
T: DeserializeOwned,
Parses MessagePack from body.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl MsgPackResponse for Response
Available on crate features cresult and reqwest only.
impl MsgPackResponse for Response
Available on crate features
cresult and reqwest only.