pub enum StdRequestSerializer {}Expand description
A body serializer for standard request types.
Trait Implementations§
Source§impl<'a, T, W> AsyncSerializeRequest<'a, T, W> for StdRequestSerializerwhere
T: Serialize,
impl<'a, T, W> AsyncSerializeRequest<'a, T, W> for StdRequestSerializerwhere
T: Serialize,
Source§fn content_type(runtime: &ConjureRuntime, _: &T) -> HeaderValue
fn content_type(runtime: &ConjureRuntime, _: &T) -> HeaderValue
Returns the body’s content type.
Source§fn serialize(
runtime: &ConjureRuntime,
value: T,
) -> Result<AsyncRequestBody<'a, W>, Error>
fn serialize( runtime: &ConjureRuntime, value: T, ) -> Result<AsyncRequestBody<'a, W>, Error>
Serializes the body.
Source§fn content_length(runtime: &ConjureRuntime, value: &T) -> Option<u64>
fn content_length(runtime: &ConjureRuntime, value: &T) -> Option<u64>
Returns the body’s length, if known. Read more
Source§impl<'a, T, W> LocalAsyncSerializeRequest<'a, T, W> for StdRequestSerializerwhere
T: Serialize,
impl<'a, T, W> LocalAsyncSerializeRequest<'a, T, W> for StdRequestSerializerwhere
T: Serialize,
Source§fn content_type(runtime: &ConjureRuntime, _: &T) -> HeaderValue
fn content_type(runtime: &ConjureRuntime, _: &T) -> HeaderValue
Returns the body’s content type.
Source§fn serialize(
runtime: &ConjureRuntime,
value: T,
) -> Result<LocalAsyncRequestBody<'a, W>, Error>
fn serialize( runtime: &ConjureRuntime, value: T, ) -> Result<LocalAsyncRequestBody<'a, W>, Error>
Serializes the body.
Source§fn content_length(runtime: &ConjureRuntime, value: &T) -> Option<u64>
fn content_length(runtime: &ConjureRuntime, value: &T) -> Option<u64>
Returns the body’s length, if known. Read more
Source§impl<'a, T, W> SerializeRequest<'a, T, W> for StdRequestSerializerwhere
T: Serialize,
impl<'a, T, W> SerializeRequest<'a, T, W> for StdRequestSerializerwhere
T: Serialize,
Source§fn content_type(runtime: &ConjureRuntime, _: &T) -> HeaderValue
fn content_type(runtime: &ConjureRuntime, _: &T) -> HeaderValue
Returns the body’s content type.
Source§fn serialize(
runtime: &ConjureRuntime,
value: T,
) -> Result<RequestBody<'a, W>, Error>
fn serialize( runtime: &ConjureRuntime, value: T, ) -> Result<RequestBody<'a, W>, Error>
Serializes the body.
Source§fn content_length(runtime: &ConjureRuntime, value: &T) -> Option<u64>
fn content_length(runtime: &ConjureRuntime, value: &T) -> Option<u64>
Returns the body’s length, if known. Read more