pub struct MockRequestDispatcher { /* private fields */ }
Expand description

Composes mock API responses

A Default is provided which returns an successful response with an empty body

These can be constructed using either a Default implementation or with the with_status function.

Implementations

Returns a instance that mocks the status code that would be returned from AWS

Mocks the service request failing with a communications error

Mocks the service response body what would be returned from AWS

Mocks the json serialized response body what would be returned from AWS

Mocks the signed request checking applied to a request before sending to AWS

Mocks a single service header that would be returned from AWS

Trait Implementations

Returns the “default value” for a type. Read more

Dispatch Request, and then return a Response

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more