Expand description
The Handler trait: async functions usable as endpoints.
Implemented for async fns and closures taking up to 12 extractor
arguments. Every argument but the last implements
FromRequestParts; the last implements FromRequest (and may read
the body). The return type implements IntoResponse.
Because extraction, response conversion and documentation all go through siderite traits, a handler’s OpenAPI operation is derived from its signature with no macros required.
Traits§
- Handler
- An endpoint callable with a request.
Tis an inference marker.