pub struct RequestContext<'a> { /* private fields */ }
Expand description

An object containing extra low-level contextual information about a request.

Conjure service endpoints declared with the server-request-context tag will be passed a RequestContext in the generated trait.

Implementations§

Returns the request’s URI.

Returns a shared reference to the request’s headers.

Returns a shared reference to the request’s extensions.

Returns a shared reference to extensions that will be added to the response.

Returns a mutable reference to extensions that will be added to the 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.

Calls U::from(self).

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

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.