Function config_struct::create_config_module
[−]
[src]
pub fn create_config_module(
raw_config: &RawStructValue,
options: &Options
) -> Result<String, StructGenerationError>
Generate Rust code for a RawStructValue.
This will recursively generate code for all nested structs within the given value.
The easiest way to get a RawStructValue is to use the parse_config
or
parse_config_from_file
function from one of the parsing modules.