pub enum BinaryRequestSerializer {}Expand description
A body serializer for streaming requests.
Trait Implementations§
Source§impl<'a, T, R> AsyncSerializeRequest<'a, T, R> for BinaryRequestSerializerwhere
T: AsyncWriteBody<R> + Send + 'a,
impl<'a, T, R> AsyncSerializeRequest<'a, T, R> for BinaryRequestSerializerwhere
T: AsyncWriteBody<R> + Send + 'a,
Source§fn content_type(_: &ConjureRuntime, _: &T) -> HeaderValue
fn content_type(_: &ConjureRuntime, _: &T) -> HeaderValue
Returns the body’s content type.
Source§fn serialize(
_: &ConjureRuntime,
value: T,
) -> Result<AsyncRequestBody<'a, R>, Error>
fn serialize( _: &ConjureRuntime, value: T, ) -> Result<AsyncRequestBody<'a, R>, 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, R> LocalAsyncSerializeRequest<'a, T, R> for BinaryRequestSerializerwhere
T: LocalAsyncWriteBody<R> + 'a,
impl<'a, T, R> LocalAsyncSerializeRequest<'a, T, R> for BinaryRequestSerializerwhere
T: LocalAsyncWriteBody<R> + 'a,
Source§fn content_type(_: &ConjureRuntime, _: &T) -> HeaderValue
fn content_type(_: &ConjureRuntime, _: &T) -> HeaderValue
Returns the body’s content type.
Source§fn serialize(
_: &ConjureRuntime,
value: T,
) -> Result<LocalAsyncRequestBody<'a, R>, Error>
fn serialize( _: &ConjureRuntime, value: T, ) -> Result<LocalAsyncRequestBody<'a, R>, 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, R> SerializeRequest<'a, T, R> for BinaryRequestSerializerwhere
T: WriteBody<R> + 'a,
impl<'a, T, R> SerializeRequest<'a, T, R> for BinaryRequestSerializerwhere
T: WriteBody<R> + 'a,
Source§fn content_type(_: &ConjureRuntime, _: &T) -> HeaderValue
fn content_type(_: &ConjureRuntime, _: &T) -> HeaderValue
Returns the body’s content type.
Source§fn serialize(_: &ConjureRuntime, value: T) -> Result<RequestBody<'a, R>, Error>
fn serialize(_: &ConjureRuntime, value: T) -> Result<RequestBody<'a, R>, 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