Expand description
XSD AST → IR lowering pass.
The single public entry point is lower, which converts a parsed
xsd::Schema into a TypeGraph.
§Name-conversion rules
| Source | Rule | Example |
|---|---|---|
| XSD type name | kept verbatim (already PascalCase) | BusinessApplicationHeaderV04 |
| Sequence element name → struct field | xml_to_snake_case | BizMsgIdr → biz_msg_idr |
| Choice element name → variant name | kept verbatim | OrgId → OrgId |
| Enumeration value → code variant | code_to_pascal_case | "ADDR" → Addr |
| Attribute name → field name | xml_to_snake_case | Ccy → ccy |
Enums§
- Lower
Error - Errors that can occur during the lowering pass.
Functions§
- code_
to_ pascal_ case - Convert an XSD enumeration value (typically all-caps) to a
PascalCaseRust variant name. - lower
- Lower an XSD
Schemainto aTypeGraph. - xml_
to_ snake_ case - Convert an ISO 20022 XML element name (
PascalCase/ mixed-case / all-caps) to asnake_caseRust identifier.