Skip to main content

Module models

Module models 

Source
Expand description

Data model definitions used throughout the transformation pipeline.

This module contains structured representations of intermediate and final data forms used in parsing, interpretation, code generation, and rendering. It serves as the central type layer for schema handling and Rust code generation.

Modules§

code
The code module contains types and helper methods to format and manage the code generated by this crate.
data
Rust-oriented data type representations for code generation.
meta
The meta module contains all MetaType related definitions and structures.
schema
The schema module contains internal representations of XML Schema (XSD) structures.

Structs§

ExplicitNameBuilder
A more explicit version of NameBuilder that does not add or remove any suffixes or prefixes from the generated name. This may lead to duplicated strings inside the generated name (like FuuTypeType), but is will reduce naming conflicts in most cases.
ExplicitNaming
A more explicit version of Naming that does not add or remove any suffixes or prefixes from the generated name expect the one that were configured by Generator::with_type_postfix.
IdentCache
Cache that keeps track of different TypeIdentifiers.
NameBuilder
Default implementation for the NameBuilder trait.
Naming
Default name generation and formatting implementation.
PropertyIdent
Type that is used to identify properties (elements, attributes, enumerations, …) in the schema definition.
TypeIdent
Type that is used to identify types in the schema definition.

Enums§

IdentType
Type of the identifier.
Name
Type that represents a name of a XSD element.

Functions§

format_ident
Format the passed string s into a valid Rust identifier by adding an underscore if it starts with a numeric character or is a Rust keyword.
format_unknown_variant
Format an unknown variant identifier based on the passed id.
unify_string
Unify the passed string s into a standard format.

Type Aliases§

AttributeIdent
Identifier used to identify attributes in the AttributesMeta structure.
ElementIdent
Identifier used to identify elements in the ElementsMeta structure.
EnumerationIdent
Identifier used to identify enumerations in the EnumerationMetaVariants structure.
IdentDeprecated
Convenient type to not break the public interface.
TypeIdentType
Defines the type of the TypeIdent.