Module viz::prelude [−][src]
Modules
config | Application Configuration |
http | |
types |
Macros
anyhow | Construct an ad-hoc error from a string or existing non- |
bail | Return early with an error. |
ensure | Return early with an error if a condition is not satisfied. |
how | Converts a custom error to |
reject | Responds a custom error to response. |
Structs
Context | |
Cookie | Representation of an HTTP cookie. |
CookieJar | A collection of cookies that tracks its modifications. |
Cookies | |
Error | The |
Form | Form Extractor |
HandlerSuper | |
HandlerWrapper | |
Json | Json Extractor |
Params | |
ParamsDeserializer | |
PathTree | A path tree. |
Payload | Payload Body |
Query | Query Extractor |
Response | Viz Response |
Route | |
RouteHandler | |
Router | |
State |
Enums
CookiesError | |
Method | |
ParamsError | |
PayloadError | Payload Error |
Constants
PAYLOAD_LIMIT | 1 MB |
Traits
CookieContextExt | |
Extract | Extract |
FormContextExt | Context Extends |
Guard | |
Handler | |
HandlerBase | |
HandlerCamp | |
Middleware | A handle trait for asynchronous context pipeline. |
MultipartContextExt | Context Extends |
ParamsContextExt | |
PayloadCheck | |
QueryContextExt | Context Extends |
StateContextExt | |
StateFactory |
Functions
form | |
get_length | |
get_mime | |
into_guard | |
json | Creates a JSON payload |
multipart | |
route | |
router |
Type Definitions
DynMiddleware | Dyn Middleware |
Middlewares | Middleware List |
Multipart | Multipart Extractor |
Result | Result |
Tree | Tree |