mirror of
https://github.com/actix/actix-web.git
synced 2024-11-22 17:41:11 +00:00
fmt codegen
This commit is contained in:
parent
f227e880d7
commit
c959916346
1 changed files with 31 additions and 32 deletions
|
@ -115,15 +115,14 @@ macro_rules! method_macro {
|
||||||
///
|
///
|
||||||
/// # Attributes
|
/// # Attributes
|
||||||
/// - `"path"`: Raw literal string with path for which to register handler.
|
/// - `"path"`: Raw literal string with path for which to register handler.
|
||||||
/// - `name = "resource_name"`: Specifies resource name for the handler. If not set, the
|
/// - `name = "resource_name"`: Specifies resource name for the handler. If not set, the function
|
||||||
/// function name of handler is used.
|
/// name of handler is used.
|
||||||
/// - `guard = "function_name"`: Registers function as guard.
|
/// - `guard = "function_name"`: Registers function as guard using `actix_web::guard::fn_guard`.
|
||||||
/// using `actix_web::guard::fn_guard`.
|
|
||||||
/// - `wrap = "Middleware"`: Registers a resource middleware.
|
/// - `wrap = "Middleware"`: Registers a resource middleware.
|
||||||
///
|
///
|
||||||
/// # Notes
|
/// # Notes
|
||||||
/// Function name can be specified as any expression that is going to be accessible to the generate
|
/// Function name can be specified as any expression that is going to be accessible to the
|
||||||
/// code, e.g `my_guard` or `my_module::my_guard`.
|
/// generate code, e.g `my_guard` or `my_module::my_guard`.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in a new issue