Expand description
Enable to parse request/response JSONs into the following object structs.
Structsยง
- AppState
- Implements app state struct.
- Country
- Used in parsing RestCountries API
- Country
Query Params - Used in parsing RestCountries API as query parameters
- Name
- Used in parsing RestCountries API
- Request
Json - Needs to implement
serde::Deserialize
trait in order to use it as proper handler extractor - Response
Json - Needs to implement
serde::Serialize
trait in order to use it as proper json Response object.