pub trait IsoMessage: Validatable {
// Required methods
fn message_type(&self) -> &'static str;
fn root_path(&self) -> &'static str;
// Provided method
fn validate_message(&self) -> Vec<ConstraintViolation> { ... }
}Expand description
Marker trait for document-level types that represent a complete ISO 20022 message.
Only top-level Document structs implement this trait. It provides
the message type identifier and root XPath used as the base path for
constraint validation.
Required Methods§
Sourcefn message_type(&self) -> &'static str
fn message_type(&self) -> &'static str
The ISO 20022 message type identifier (e.g. "pacs.008.001.13").
Provided Methods§
Sourcefn validate_message(&self) -> Vec<ConstraintViolation>
fn validate_message(&self) -> Vec<ConstraintViolation>
Validate all XSD constraints starting from the root path.
Convenience method that calls Validatable::validate_constraints
with the correct root path.