Crate ngyn

source ·

Re-exports

Modules

Structs

  • A struct that represents a request.
  • NgynResponse is a struct that represents a server response.

Enums

  • An enum that represents an HTTP method. It is used to specify the HTTP method of a route.
  • Path Enum

Traits

  • NgynController is a trait that defines the basic structure of a controller in Ngyn. It is designed to be thread-safe.
  • Trait for implementing a gate.
  • NgynInjectable is a trait that defines the basic structure of an injectable in Ngyn. It is designed to be thread-safe.
  • Trait for implementing a middleware.
  • NgynModule is a trait that defines the basic structure of a module in Ngyn.

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.
  • Attribute to mark a struct as injectable.
  • 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.
  • Enables an async main function.
  • 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.
  • Attribute to provide a given instance for a specific type.
  • 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.