pub enum OptionalBinaryResponseDeserializer {}
Expand description
A body deserializer for optional binary types.
Trait Implementations§
Source§impl<R> AsyncDeserializeResponse<Option<R>, R> for OptionalBinaryResponseDeserializerwhere
R: Send,
impl<R> AsyncDeserializeResponse<Option<R>, R> for OptionalBinaryResponseDeserializerwhere
R: Send,
Source§fn accept(runtime: &ConjureRuntime) -> Option<HeaderValue>
fn accept(runtime: &ConjureRuntime) -> Option<HeaderValue>
Returns the value of the
Accept
header to be included in the request.Source§async fn deserialize(
runtime: &ConjureRuntime,
response: Response<R>,
) -> Result<Option<R>, Error>
async fn deserialize( runtime: &ConjureRuntime, response: Response<R>, ) -> Result<Option<R>, Error>
Deserializes the response.
Source§impl<R> DeserializeResponse<Option<R>, R> for OptionalBinaryResponseDeserializer
impl<R> DeserializeResponse<Option<R>, R> for OptionalBinaryResponseDeserializer
Source§fn accept(runtime: &ConjureRuntime) -> Option<HeaderValue>
fn accept(runtime: &ConjureRuntime) -> Option<HeaderValue>
Returns the value of the
Accept
header to be included in the request.Source§fn deserialize(
runtime: &ConjureRuntime,
response: Response<R>,
) -> Result<Option<R>, Error>
fn deserialize( runtime: &ConjureRuntime, response: Response<R>, ) -> Result<Option<R>, Error>
Deserializes the response.
Source§impl<R> LocalAsyncDeserializeResponse<Option<R>, R> for OptionalBinaryResponseDeserializer
impl<R> LocalAsyncDeserializeResponse<Option<R>, R> for OptionalBinaryResponseDeserializer
Source§fn accept(runtime: &ConjureRuntime) -> Option<HeaderValue>
fn accept(runtime: &ConjureRuntime) -> Option<HeaderValue>
Returns the value of the
Accept
header to be included in the request.Source§async fn deserialize(
runtime: &ConjureRuntime,
response: Response<R>,
) -> Result<Option<R>, Error>
async fn deserialize( runtime: &ConjureRuntime, response: Response<R>, ) -> Result<Option<R>, Error>
Deserializes the response.
Auto Trait Implementations§
impl Freeze for OptionalBinaryResponseDeserializer
impl RefUnwindSafe for OptionalBinaryResponseDeserializer
impl Send for OptionalBinaryResponseDeserializer
impl Sync for OptionalBinaryResponseDeserializer
impl Unpin for OptionalBinaryResponseDeserializer
impl UnwindSafe for OptionalBinaryResponseDeserializer
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