Skip to main content

Module view

Module view 

Source
Expand description

Views: request handlers and response helpers.

Structs§

Json
JSON Extractor / Response.

Traits§

View
A request handler producing a response or an error.

Functions§

get_view
Axum method router for a view closure.
html
HTML response with the given body.
json
JSON response from a serializable value.
redirect
Redirect response to the given location.
render
HTML response from rendering an askama template.

Type Aliases§

Request
Incoming axum request.
Response
Outgoing axum response.