pub struct GeneratorConfig {
pub types: Vec<(IdentType, String)>,
pub derive: 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.
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
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratorConfig
impl Debug for GeneratorConfig
Auto Trait Implementations§
impl Freeze for GeneratorConfig
impl RefUnwindSafe for GeneratorConfig
impl Send for GeneratorConfig
impl Sync for GeneratorConfig
impl Unpin for GeneratorConfig
impl UnwindSafe for GeneratorConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more