Struct tsukuyomi::Input

source ·
pub struct Input<'task> {
    pub request: &'task Request<()>,
    pub params: &'task Option<Params<'task>>,
    pub cookies: &'task mut Cookies<'task>,
    pub locals: &'task mut LocalMap,
    pub response_headers: &'task mut Option<HeaderMap>,
    /* private fields */
}
Expand description

A proxy object for accessing the incoming HTTP request data.

Fields

request: &'task Request<()>

The information of incoming request without the message body.

params: &'task Option<Params<'task>>

A set of extracted parameters from inner.

cookies: &'task mut Cookies<'task>

A proxy object for accessing Cookie values.

locals: &'task mut LocalMap

A typemap that holds arbitrary request-local inner.

response_headers: &'task mut Option<HeaderMap>

A map of header fields that will be inserted at reply to the client.

Trait Implementations

Formats the value using the given formatter. Read more

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
Creates a Config with the specified ModifyHandler

Returns the argument unchanged.

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.