handler

Attribute Macro handler 

Source
#[handler]
Expand description

Creates route handler without attached method guard.

Syntax: #[handler("path"[, attributes])]

ยงAttributes:

  • "path" - Raw literal string with path for which to register handler. Mandatory.
  • async - Attribute to indicate that registered function is asynchronous.
  • guard="function_name" - Registers function as guard using actix_web::guard::fn_guard