pub struct CannedResponseDeserializer { /* private fields */ }
Available on crate features
client
and test-util
only.Expand description
Test response deserializer that always returns the same canned response.
Implementations§
Trait Implementations§
source§impl Debug for CannedResponseDeserializer
impl Debug for CannedResponseDeserializer
source§impl Default for CannedResponseDeserializer
impl Default for CannedResponseDeserializer
source§fn default() -> CannedResponseDeserializer
fn default() -> CannedResponseDeserializer
Returns the “default value” for a type. Read more
source§impl DeserializeResponse for CannedResponseDeserializer
impl DeserializeResponse for CannedResponseDeserializer
source§fn deserialize_nonstreaming(
&self,
_response: &HttpResponse
) -> Result<Output, OrchestratorError<Error>>
fn deserialize_nonstreaming( &self, _response: &HttpResponse ) -> Result<Output, OrchestratorError<Error>>
Deserialize the entire response including its body into an output or error.
source§fn deserialize_streaming(
&self,
response: &mut Response
) -> Option<Result<Output, OrchestratorError<Error>>>
fn deserialize_streaming( &self, response: &mut Response ) -> Option<Result<Output, OrchestratorError<Error>>>
For streaming requests, deserializes the response headers. Read more
source§impl RuntimePlugin for CannedResponseDeserializer
impl RuntimePlugin for CannedResponseDeserializer
source§fn config(&self) -> Option<FrozenLayer>
fn config(&self) -> Option<FrozenLayer>
source§fn runtime_components(
&self,
current_components: &RuntimeComponentsBuilder
) -> Cow<'_, RuntimeComponentsBuilder>
fn runtime_components( &self, current_components: &RuntimeComponentsBuilder ) -> Cow<'_, RuntimeComponentsBuilder>
Returns a
RuntimeComponentsBuilder
to incorporate into the final runtime components. Read moreAuto Trait Implementations§
impl !Freeze for CannedResponseDeserializer
impl RefUnwindSafe for CannedResponseDeserializer
impl Send for CannedResponseDeserializer
impl Sync for CannedResponseDeserializer
impl Unpin for CannedResponseDeserializer
impl UnwindSafe for CannedResponseDeserializer
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.