Function generate_modules

Source
pub fn generate_modules(config: Config) -> Result<Module, Error>
Expand description

Generates rust code split into different modules from a XML schema using the passed config.

Like generate but instead of returning the whole code as token stream it returns a Module, holding the code for itself and his sub-modules. Call Module::write_to_files() or Module::write_to_files_with() to actually create the source code files recursively.

ยงErrors

Returns a suitable Error type if the process was not successful.