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 any_type: Option<String>,
pub any_attribute_type: Option<String>,
}
Expand description
Configuration for the code generator.
Fields§
§flags: GeneratorFlags
Additional 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: Generate
Specify which meta types the generator should generate data types for.
type_postfix: TypePostfix
Postfixes that should be applied to the name of the different generated types.
See with_type_postfix
for more details.
box_flags: BoxFlags
Tell the generator how to deal with boxing.
typedef_mode: TypedefMode
Tells the generator how to deal with type definitions.
any_type: Option<String>
Type to use to store unstructured xs:any
elements.
See Generator::any_type
for details.
any_attribute_type: Option<String>
Type to use to store unstructured xs:anyAttribute
attributes.
See Generator::any_attribute_type
for details.
Trait Implementations§
Source§impl Clone for GeneratorConfig
impl Clone for GeneratorConfig
Source§fn clone(&self) -> GeneratorConfig
fn clone(&self) -> GeneratorConfig
Returns a duplicate 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