Macro de_conf::bundle_config
source · macro_rules! bundle_config { ($($name:ident : $type_into:ty : $type_from:ty),*) => { ... }; }
Expand description
Bundles configuration neatly into a single struct.
The most important part is the generated load method which loads the
configuration from a file.
It also manages converting into final desired data structure.
nameis the name of the field in the Configuration structtype_fromis the implementor of Configtype_intois the final desired data structure must be able to fulfil the TryInto trait