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(_: &ConjureRuntime, _: &T) -> HeaderValue
fn content_type(_: &ConjureRuntime, _: &T) -> HeaderValue
Returns the body’s content type.
Source§fn serialize(
_: &ConjureRuntime,
value: T,
) -> Result<AsyncRequestBody<'a, W>, Error>
fn serialize( _: &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(_: &ConjureRuntime, _: &T) -> HeaderValue
fn content_type(_: &ConjureRuntime, _: &T) -> HeaderValue
Returns the body’s content type.
Source§fn serialize(
_: &ConjureRuntime,
value: T,
) -> Result<LocalAsyncRequestBody<'a, W>, Error>
fn serialize( _: &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(_: &ConjureRuntime, _: &T) -> HeaderValue
fn content_type(_: &ConjureRuntime, _: &T) -> HeaderValue
Returns the body’s content type.
Source§fn serialize(_: &ConjureRuntime, value: T) -> Result<RequestBody<'a, W>, Error>
fn serialize(_: &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
Auto Trait Implementations§
impl Freeze for StdRequestSerializer
impl RefUnwindSafe for StdRequestSerializer
impl Send for StdRequestSerializer
impl Sync for StdRequestSerializer
impl Unpin for StdRequestSerializer
impl UnwindSafe for StdRequestSerializer
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