Struct operator::content::RequestData
source · [−]pub struct RequestData {
pub route: Option<Route>,
pub query_parameters: HashMap<String, String>,
pub request_headers: HashMap<String, String>,
}
Expand description
Render data that comes from requests.
Fields
route: Option<Route>
The request Route
that caused this content to be rendered, if any.
query_parameters: HashMap<String, String>
A parsed version of the request URI’s query string.
request_headers: HashMap<String, String>
Headers that were sent in the request.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RequestData
impl Send for RequestData
impl Sync for RequestData
impl Unpin for RequestData
impl UnwindSafe for RequestData
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self