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