Expand description
Curated re-exports for typical workflows.
Glob-import this module to get the headline error types, the translation entry-point functions, the SWIFT MT parser, and the validation registry without remembering each sub-crate’s path.
use mx20022::prelude::*;Modules§
- mt
- SWIFT MT message parser.
Structs§
- Builder
Error - Error returned when a builder cannot construct a valid type because one or more required fields were not set.
- Choice
Wrapper - A transparent wrapper that places an
xs:choiceenum as the$value(element content) of its parent XML element. - Message
Id - Message type identifier extracted from an ISO 20022 XML namespace URI.
- Rule
Registry - A registry of named validation rules.
- Schema
Validator - Orchestrates schema-level validation for a message type.
- Translation
Result - The outcome of a successful translation.
- Translation
Warning - A single field-level data-loss warning produced during translation.
- Translation
Warnings - A collection of
TranslationWarnings accumulated during a single translation call. - Validation
Error - A single validation finding at a specific location in a message.
- Validation
Result - The aggregated result of validating an ISO 20022 message.
Enums§
- MtError
- Errors that can occur when parsing SWIFT MT messages.
- Parse
Error - Errors that can occur during ISO 20022 XML parsing or serialization.
- Severity
- Severity level of a validation finding.
- Translation
Error - Errors that can occur during translation between MT and MX messages.
Functions§
- camt053_
to_ mt940 - Translate a
camt.053.001.11Documentto an MT940 message string. - detect_
message_ type - Extract the ISO 20022 message type from the root element’s
xmlnsattribute. - mt103_
to_ pacs008 - Translate an
Mt103into apacs.008.001.13Document. - mt202_
to_ pacs009 - Translate an
Mt202into apacs.009.001.10Document. - mt940_
to_ camt053 - Translate an
Mt940into acamt.053.001.11Document. - pacs008_
to_ mt103 - Translate a
pacs.008.001.13Documentto an MT103 message string. - pacs009_
to_ mt202 - Translate a
pacs.009.001.10Documentto an MT202 message string.