Attribute Macro patch

Source
#[patch]
Expand description

§Syntax

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

§Attributes

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

§Examples

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