pub enum Document {
FIToFICustomerCreditTransferV08(Box<FIToFICustomerCreditTransferV08>),
FinancialInstitutionCreditTransferV08(Box<FinancialInstitutionCreditTransferV08>),
ResolutionOfInvestigationV09(Box<ResolutionOfInvestigationV09>),
FIToFIPaymentCancellationRequestV08(Box<FIToFIPaymentCancellationRequestV08>),
NotificationToReceiveV06(Box<NotificationToReceiveV06>),
UNKNOWN,
}Expand description
Document represents the root container for all supported CBPR+ ISO20022 message types
Variants§
FIToFICustomerCreditTransferV08(Box<FIToFICustomerCreditTransferV08>)
pacs.008.001.08 - FI to FI Customer Credit Transfer
FinancialInstitutionCreditTransferV08(Box<FinancialInstitutionCreditTransferV08>)
pacs.009.001.08 - Financial Institution Credit Transfer
ResolutionOfInvestigationV09(Box<ResolutionOfInvestigationV09>)
camt.029.001.09 - Resolution of Investigation
FIToFIPaymentCancellationRequestV08(Box<FIToFIPaymentCancellationRequestV08>)
camt.056.001.08 - FI to FI Payment Cancellation Request
NotificationToReceiveV06(Box<NotificationToReceiveV06>)
camt.057.001.06 - Notification to Receive
UNKNOWN
Unknown or unsupported document type
Implementations§
Source§impl Document
impl Document
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validates the document according to ISO20022 and CBPR+ specifications
Sourcepub fn message_type(&self) -> &'static str
pub fn message_type(&self) -> &'static str
Returns the message type identifier for the document
Sourcepub fn is_cbpr_plus_compliant(&self) -> bool
pub fn is_cbpr_plus_compliant(&self) -> bool
Returns whether the document is CBPR+ compliant
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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