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
Auto Trait Implementations§
impl Freeze for BinaryRequestSerializer
impl RefUnwindSafe for BinaryRequestSerializer
impl Send for BinaryRequestSerializer
impl Sync for BinaryRequestSerializer
impl Unpin for BinaryRequestSerializer
impl UnwindSafe for BinaryRequestSerializer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more