Crate module_utils

Source
Expand description

§Module helpers

This crate contains some helpers that are useful when using static-files-module or virtual-hosts-module crates for example.

Enums§

RequestFilterResult
Request filter result indicating how the current request should be processed further

Traits§

FromYaml
Trait for configuration structures that can be loaded from YAML files. This trait has a blanket implementation for any structure implementing serde::Deserialize.
RequestFilter
Trait to be implemented by request filters.

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.