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.