pub struct SepaValidator;Expand description
SEPA Credit Transfer scheme validator.
§Examples
use mx20022_validate::schemes::sepa::SepaValidator;
use mx20022_validate::schemes::SchemeValidator;
let validator = SepaValidator::new();
assert_eq!(validator.name(), "SEPA");
assert!(validator.supported_messages().contains(&"pacs.008"));Implementations§
Source§impl SepaValidator
impl SepaValidator
Trait Implementations§
Source§impl Default for SepaValidator
impl Default for SepaValidator
Source§impl SchemeValidator for SepaValidator
impl SchemeValidator for SepaValidator
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Human-readable name of the scheme (e.g.
"FedNow", "SEPA", "CBPR+").Source§fn supported_messages(&self) -> &[&str]
fn supported_messages(&self) -> &[&str]
Short message type identifiers supported by this scheme. Read more
Source§fn validate(&self, xml: &str, message_type: &str) -> ValidationResult
fn validate(&self, xml: &str, message_type: &str) -> ValidationResult
Validate raw XML content against this scheme’s rules. Read more
Source§fn validate_typed(
&self,
msg: &dyn Any,
message_type: &str,
) -> Option<ValidationResult>
fn validate_typed( &self, msg: &dyn Any, message_type: &str, ) -> Option<ValidationResult>
Validate a typed (deserialized) message against this scheme’s rules. Read more
Auto Trait Implementations§
impl Freeze for SepaValidator
impl RefUnwindSafe for SepaValidator
impl Send for SepaValidator
impl Sync for SepaValidator
impl Unpin for SepaValidator
impl UnsafeUnpin for SepaValidator
impl UnwindSafe for SepaValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more