Crate ngyn_macros

source ·

Attribute Macros

  • check macro is used to determine if a route should be executed.
  • The controller attribute is used to mark a struct as a controller.
  • The delete attribute is used to mark a function as a GET route.
  • The get attribute is used to mark a function as a GET route.
  • The head attribute is used to mark a function as a GET route.
  • The injectable attribute is used to mark a struct as injectable. This means that the struct can be automatically provided as a dependency where needed.
  • module is a procedural macro that generates a struct and its implementation.
  • The patch attribute is used to mark a function as a GET route.
  • The post attribute is used to mark a function as a GET route.
  • The put attribute is used to mark a function as a GET route.
  • The route attribute is used to mark a function as a route.