pub struct GeneratorConfig {
pub flags: GeneratorFlags,
pub types: Vec<IdentTriple>,
pub generate: Generate,
pub type_postfix: TypePostfix,
pub box_flags: BoxFlags,
pub typedef_mode: TypedefMode,
pub text_type: String,
pub mixed_type: String,
pub nillable_type: String,
pub any_type: String,
pub any_attributes_type: String,
}Expand description
Configuration for the code generator.
Fields§
§flags: GeneratorFlagsAdditional flags to control the generator.
types: Vec<IdentTriple>Types to add to the generator before the actual data types are generated.
See with_type for more details.
generate: GenerateSpecify which meta types the generator should generate data types for.
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.
typedef_mode: TypedefModeTells the generator how to deal with type definitions.
text_type: StringType to use to store unformatted text.
See Generator::text_type for details.
mixed_type: StringType to use to store mixed types.
See Generator::mixed_type for details.
nillable_type: StringType to use to store nillable types.
See Generator::nillable_type for details.
any_type: StringType to use to store unstructured xs:any elements.
See Generator::any_type for details.
any_attributes_type: StringType to use to store unstructured xs:anyAttribute attributes.
See Generator::any_attributes_type
for details.
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