Struct rustify::endpoint::MutatedEndpoint[][src]

pub struct MutatedEndpoint<'a, E: Endpoint, M: MiddleWare> { /* fields omitted */ }
Expand description

Represents an Endpoint that has had MiddleWare applied to it.

This type wraps Endpoint by implementng it. The primary difference is when exec is called the request and response will potentially be mutated before processing. Only one MiddleWare can be applied to a single Endpoint.

Implementations

Returns a new MutatedEndpoint.

Trait Implementations

The type that the raw response from executing this endpoint will deserialized into. This type is passed on to the EndpointResult and is used to determine the type returned when the parse() method is called. Read more

The content type of the request body

The content type of the response body

The relative URL path that represents the location of this Endpoint. This is combined with the base URL from a Client instance to create the fully qualified URL. Read more

The HTTP method to be used when executing this Endpoint.

Optional query parameters to add to the request.

Optional data to add to the body of the request.

Returns the full URL address of the endpoint using the base address.

Returns a Request containing all data necessary to execute against this endpoint. Read more

Executes the Endpoint using the given Client.

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

Performs the conversion.

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

Performs the conversion.

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