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