Attribute Macro tusk_rs::treatment

source ·
#[treatment]
Expand description

This macro is used to define a treatment function. The function is almost the same as the [route] macro, but it should return a tuple of the response, the request, and the database connection instead of a Response.