pub struct Config<'types> {
pub types: &'types Types,
pub flags: GeneratorFlags,
pub derive: Vec<Ident>,
pub postfixes: [String; 8],
pub box_flags: BoxFlags,
pub typedef_mode: TypedefMode,
pub serde_support: SerdeSupport,
pub dyn_type_traits: DynTypeTraits,
pub xsd_parser_crate: Ident,
}Expand description
Contains the configuration of the generator.
Fields§
§types: &'types TypesReference to the types the code should be generated for.
flags: GeneratorFlagsFlags that controls the behavior of the generator.
derive: Vec<Ident>Traits the generator should derive the generated types from.
postfixes: [String; 8]List of postfixed to add to the name of the generated types.
This corresponds to the variants of IdentType.
box_flags: BoxFlagsTells the generator how to deal with boxed elements.
typedef_mode: TypedefModeTells the generator how to deal with type definitions.
serde_support: SerdeSupportTells the generator if and how to generate code to support serde.
dyn_type_traits: DynTypeTraitsList of traits that should be implemented by dynamic types.
xsd_parser_crate: IdentName of the xsd_parser crate.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for Config<'types>
impl<'types> !RefUnwindSafe for Config<'types>
impl<'types> !Send for Config<'types>
impl<'types> !Sync for Config<'types>
impl<'types> Unpin for Config<'types>
impl<'types> !UnwindSafe for Config<'types>
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