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", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl MsgPackResponse for Response
Available on crate features reqwest and cresult only.
impl MsgPackResponse for Response
Available on crate features
reqwest and cresult only.