pub fn generate(config: Config) -> Result<TokenStream, Error>
Expand description
Generates rust code from a XML schema using the passed config
.
This is the most easiest way to use the xsd-parser
crate. The generate
function provides a simple way to generate rust code from XML schemas using
the passed configuration.
If you need more detailed control over the generation process or only a part
of it, use the Parser
, Interpreter
, Optimizer
or Generator
directly.
ยงErrors
Returns a suitable Error
type if the process was not successful.