Crate ngyn_macros

Crate ngyn_macros 

Source

Attribute Macros§

handler
Attribute macro to define a route handler function with optional gates and middlewares options in async functions.

Derive Macros§

AppState
The AppState derive macro is used to derive a struct that can be used as a state in a server.
Dto
The Dto derive macro is used to generate a DTO struct.
Param
The Param derive macro is used to derive a struct that can be used to parse route parameters.
Query
The Query derive macro is used to derive a struct that can be used to parse query parameters.
Service
The Service derive macro is used to generate a Service.