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 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.
Executes the Endpoint using the given Client.
Auto Trait Implementations
impl<'a, E, M> RefUnwindSafe for MutatedEndpoint<'a, E, M> where
E: RefUnwindSafe,
M: RefUnwindSafe,
impl<'a, E, M> Send for MutatedEndpoint<'a, E, M>
impl<'a, E, M> Sync for MutatedEndpoint<'a, E, M>
impl<'a, E, M> Unpin for MutatedEndpoint<'a, E, M> where
E: Unpin,
impl<'a, E, M> UnwindSafe for MutatedEndpoint<'a, E, M> where
E: UnwindSafe,
M: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
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