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§
- Request
Filter Result - Request filter result indicating how the current request should be processed further
Traits§
- From
Yaml - Trait for configuration structures that can be loaded from YAML files. This trait has a blanket
implementation for any structure implementing
serde::Deserialize
. - Request
Filter - 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
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.