Crate module_utils_macros

Source
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 and Default automatically. All field types are required to implement serde::Deserialize, Debug and Default.
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 and Debug automatically. All field types are required to implement structopt::StructOpt and Debug.

Derive Macros§

RequestFilter
This macro will automatically implement RequestFilter by chaining the handlers identified in the struct’s fields.