Module router

Module router 

Source
Expand description

路由功能

Macros§

json
用于把json字符串转json对象值 Construct a serde_json::Value from a JSON literal.

Structs§

Context
包含了每次请求的所有信息以及用户自定义信息
Router
路由
RouterGroup
路由组,拥有和Router类似的方法

Enums§

Method
Http 请求类型

Traits§

Deserialize
用于序列化 A data structure that can be deserialized from any data format supported by Serde.
Serialize
用于反序列化 A data structure that can be serialized into any data format supported by Serde.

Type Aliases§

Ctx
自定义处理函数的参数类型
Json
json类型的值

Derive Macros§

Deserialize
用于序列化
Serialize
用于反序列化