Crate sword_macros Copy item path Source config Defines a configuration struct for the application.
This macro generates the necessary code to deserialize the struct from
the configuration toml file. controller Defines a controller with a base path.
This macro should be used in combination with the #[routes] macro. delete Defines a handler for HTTP DELETE requests.
This macro should be used inside an impl block of a struct annotated with the #[controller] macro. get Defines a handler for HTTP GET requests.
This macro should be used inside an impl block of a struct annotated with the #[controller] macro. injectable Marks a struct as injectable. main This is just a re-export of tokio::main to simplify the initial setup of middleware Declares a middleware struct. patch Defines a handler for PATCH DELETE requests.
This macro should be used inside an impl block of a struct annotated with the #[controller] macro. post Defines a handler for HTTP POST requests.
This macro should be used inside an impl block of a struct annotated with the #[controller] macro. put Defines a handler for HTTP PUT requests.
This macro should be used inside an impl block of a struct annotated with the #[controller] macro. routes Implements the routes for a controller defined with the #[controller] macro. uses Declares a executable middleware to apply to a route controller.
This macro should be used inside an impl block of a struct annotated with the #[controller] macro.