pub struct FedNowValidator { /* private fields */ }Expand description
FedNow scheme validator.
§Examples
use mx20022_validate::schemes::fednow::FedNowValidator;
use mx20022_validate::schemes::SchemeValidator;
let validator = FedNowValidator::new();
assert_eq!(validator.name(), "FedNow");
assert!(validator.supported_messages().contains(&"pacs.008"));Implementations§
Trait Implementations§
Source§impl Default for FedNowValidator
impl Default for FedNowValidator
Source§impl SchemeValidator for FedNowValidator
impl SchemeValidator for FedNowValidator
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 FedNowValidator
impl RefUnwindSafe for FedNowValidator
impl Send for FedNowValidator
impl Sync for FedNowValidator
impl Unpin for FedNowValidator
impl UnsafeUnpin for FedNowValidator
impl UnwindSafe for FedNowValidator
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