pub struct GeneratorConfig {
pub types: Vec<(IdentType, String)>,
pub derive: Option<Vec<String>>,
pub dyn_type_traits: Option<Vec<String>>,
pub type_postfix: TypePostfix,
pub box_flags: BoxFlags,
pub content_mode: ContentMode,
pub typedef_mode: TypedefMode,
pub serde_support: SerdeSupport,
pub generate: Generate,
pub flags: GenerateFlags,
pub xsd_parser: String,
}Expand description
Configuration for the code generator.
Fields§
§types: Vec<(IdentType, String)>Types to add to the generator before the actual code is generated.
See with_type for more details.
derive: Option<Vec<String>>Sets the traits the generated types should derive from.
See derive for more details.
dyn_type_traits: Option<Vec<String>>Set the traits that should be implemented by dynamic types.
See dyn_type_traits for more details.
type_postfix: TypePostfixPostfixes that should be applied to the name of the different generated types.
See with_type_postfix for more details.
box_flags: BoxFlagsTell the generator how to deal with boxing.
content_mode: ContentModeTell the generator what type should be generated for the content of an XML element.
typedef_mode: TypedefModeTells the generator how to deal with type definitions.
serde_support: SerdeSupportTells the generator how to generate code for the serde crate.
generate: GenerateSpecify which types the generator should generate code for.
flags: GenerateFlagsAdditional flags to control the generator.
xsd_parser: StringName of the xsd-parser crate that is used for the generated code.
Trait Implementations§
Source§impl Clone for GeneratorConfig
impl Clone for GeneratorConfig
Source§fn clone(&self) -> GeneratorConfig
fn clone(&self) -> GeneratorConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more