pub trait AsyncDeserializeRequest<T, R> {
// Required method
fn deserialize(
runtime: &ConjureRuntime,
headers: &HeaderMap,
body: R,
) -> impl Future<Output = Result<T, Error>> + Send;
}
Expand description
A trait implemented by response deserializers used by custom async Conjure server trait implementations.
Required Methods§
Sourcefn deserialize(
runtime: &ConjureRuntime,
headers: &HeaderMap,
body: R,
) -> impl Future<Output = Result<T, Error>> + Send
fn deserialize( runtime: &ConjureRuntime, headers: &HeaderMap, body: R, ) -> impl Future<Output = Result<T, Error>> + Send
Deserializes the request 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.