Expand description
§Macros for module-utils crate
You normally shouldn’t use this crate directly but the module-utils
crate instead.
Attribute Macros§
- merge_
conf - This attribute macro merges the configuration settings from all structs identified as field of
the current struct. The result will implement
serde::Deserialize
,Debug
andDefault
automatically. All field types are required to implementserde::Deserialize
,Debug
andDefault
. - merge_
opt - This attribute macro merges the command-line arguments from all structs identified as field of
the current struct. The result will implement
structopt::StructOpt
andDebug
automatically. All field types are required to implementstructopt::StructOpt
andDebug
.
Derive Macros§
- Request
Filter - This macro will automatically implement
RequestFilter
by chaining the handlers identified in the struct’s fields.