pub struct CbprPlusValidator;Expand description
CBPR+ scheme validator.
§Examples
use mx20022_validate::schemes::cbpr::CbprPlusValidator;
use mx20022_validate::schemes::SchemeValidator;
let validator = CbprPlusValidator::new();
assert_eq!(validator.name(), "CBPR+");
assert!(validator.supported_messages().contains(&"pacs.008"));Implementations§
Trait Implementations§
Source§impl Default for CbprPlusValidator
impl Default for CbprPlusValidator
Source§impl SchemeValidator for CbprPlusValidator
impl SchemeValidator for CbprPlusValidator
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 CbprPlusValidator
impl RefUnwindSafe for CbprPlusValidator
impl Send for CbprPlusValidator
impl Sync for CbprPlusValidator
impl Unpin for CbprPlusValidator
impl UnsafeUnpin for CbprPlusValidator
impl UnwindSafe for CbprPlusValidator
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