Skip to main content

Module prelude

Module prelude 

Source
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§

BuilderError
Error returned when a builder cannot construct a valid type because one or more required fields were not set.
ChoiceWrapper
A transparent wrapper that places an xs:choice enum as the $value (element content) of its parent XML element.
MessageId
Message type identifier extracted from an ISO 20022 XML namespace URI.
RuleRegistry
A registry of named validation rules.
SchemaValidator
Orchestrates schema-level validation for a message type.
TranslationResult
The outcome of a successful translation.
TranslationWarning
A single field-level data-loss warning produced during translation.
TranslationWarnings
A collection of TranslationWarnings accumulated during a single translation call.
ValidationError
A single validation finding at a specific location in a message.
ValidationResult
The aggregated result of validating an ISO 20022 message.

Enums§

MtError
Errors that can occur when parsing SWIFT MT messages.
ParseError
Errors that can occur during ISO 20022 XML parsing or serialization.
Severity
Severity level of a validation finding.
TranslationError
Errors that can occur during translation between MT and MX messages.

Functions§

camt053_to_mt940
Translate a camt.053.001.11 Document to an MT940 message string.
detect_message_type
Extract the ISO 20022 message type from the root element’s xmlns attribute.
mt103_to_pacs008
Translate an Mt103 into a pacs.008.001.13 Document.
mt202_to_pacs009
Translate an Mt202 into a pacs.009.001.10 Document.
mt940_to_camt053
Translate an Mt940 into a camt.053.001.11 Document.
pacs008_to_mt103
Translate a pacs.008.001.13 Document to an MT103 message string.
pacs009_to_mt202
Translate a pacs.009.001.10 Document to an MT202 message string.