Attribute Macro trace

Source
#[trace]
Expand description

§Syntax

#[trace("path"[, attributes])]

§Attributes

  • "path": Raw literal string with path for which to register handler.

§Examples

#[trace("/")]
async fn example() -> impl IntoResponse {
    "hello world"
}