Enum Document

Source
pub enum Document {
Show 30 variants NotificationOfCorrespondenceV01(Box<NotificationOfCorrespondenceV01>), ReceiptV08(Box<ReceiptV08>), ResolutionOfInvestigationV09(Box<ResolutionOfInvestigationV09>), BankToCustomerAccountReportV08(Box<BankToCustomerAccountReportV08>), BankToCustomerStatementV08(Box<BankToCustomerStatementV08>), BankToCustomerDebitCreditNotificationV08(Box<BankToCustomerDebitCreditNotificationV08>), CustomerPaymentCancellationRequestV08(Box<CustomerPaymentCancellationRequestV08>), FIToFIPaymentCancellationRequestV08(Box<FIToFIPaymentCancellationRequestV08>), NotificationToReceiveV06(Box<NotificationToReceiveV06>), NotificationToReceiveCancellationAdviceV08(Box<NotificationToReceiveCancellationAdviceV08>), AccountReportingRequestV05(Box<AccountReportingRequestV05>), ChargesPaymentNotificationV02(Box<ChargesPaymentNotificationV02>), ChargesPaymentNotificationV02MC(Box<ChargesPaymentNotificationV02>), ChargesPaymentRequestV02(Box<ChargesPaymentRequestV02>), ChargesPaymentRequestV02MC(Box<ChargesPaymentRequestV02>), ChequePresentmentNotificationV01(Box<ChequePresentmentNotificationV01>), ChequeCancellationOrStopRequestV01(Box<ChequeCancellationOrStopRequestV01>), ChequeCancellationOrStopReportV01(Box<ChequeCancellationOrStopReportV01>), FIToFIPaymentStatusReportV10(Box<FIToFIPaymentStatusReportV10>), FIToFICustomerDirectDebitV08(Box<FIToFICustomerDirectDebitV08>), PaymentReturnV09(Box<PaymentReturnV09>), FIToFICustomerCreditTransferV08(Box<FIToFICustomerCreditTransferV08>), FIToFICustomerCreditTransferV08STP(Box<FIToFICustomerCreditTransferV08>), FinancialInstitutionCreditTransferV08(Box<FinancialInstitutionCreditTransferV08>), FinancialInstitutionCreditTransferV08ADV(Box<FinancialInstitutionCreditTransferV08>), FinancialInstitutionCreditTransferV08COV(Box<FinancialInstitutionCreditTransferV08>), CustomerCreditTransferInitiationV09(Box<CustomerCreditTransferInitiationV09>), CustomerPaymentStatusReportV10(Box<CustomerPaymentStatusReportV10>), CustomerDirectDebitInitiationV08(Box<CustomerDirectDebitInitiationV08>), UNKNOWN,
}
Expand description

Document represents the root container for all supported CBPR+ ISO20022 message types

Variants§

§

NotificationOfCorrespondenceV01(Box<NotificationOfCorrespondenceV01>)

admi.024.001.01 - Notification of Correspondence

§

ReceiptV08(Box<ReceiptV08>)

camt.025.001.08 - Receipt

§

ResolutionOfInvestigationV09(Box<ResolutionOfInvestigationV09>)

camt.029.001.09 - Resolution of Investigation

§

BankToCustomerAccountReportV08(Box<BankToCustomerAccountReportV08>)

camt.052.001.08 - Bank to Customer Account Report

§

BankToCustomerStatementV08(Box<BankToCustomerStatementV08>)

camt.053.001.08 - Bank to Customer Statement

§

BankToCustomerDebitCreditNotificationV08(Box<BankToCustomerDebitCreditNotificationV08>)

camt.054.001.08 - Bank to Customer Debit Credit Notification

§

CustomerPaymentCancellationRequestV08(Box<CustomerPaymentCancellationRequestV08>)

camt.055.001.08 - Customer Payment Cancellation Request

§

FIToFIPaymentCancellationRequestV08(Box<FIToFIPaymentCancellationRequestV08>)

camt.056.001.08 - FI to FI Payment Cancellation Request

§

NotificationToReceiveV06(Box<NotificationToReceiveV06>)

camt.057.001.06 - Notification to Receive

§

NotificationToReceiveCancellationAdviceV08(Box<NotificationToReceiveCancellationAdviceV08>)

camt.058.001.08 - Notification to Receive Cancellation Advice

§

AccountReportingRequestV05(Box<AccountReportingRequestV05>)

camt.060.001.05 - Account Reporting Request

§

ChargesPaymentNotificationV02(Box<ChargesPaymentNotificationV02>)

camt.105.001.02 - Charges Payment Notification

§

ChargesPaymentNotificationV02MC(Box<ChargesPaymentNotificationV02>)

camt.105.001.02.mc - Charges Payment Notification (Multi-Currency)

§

ChargesPaymentRequestV02(Box<ChargesPaymentRequestV02>)

camt.106.001.02 - Charges Payment Request

§

ChargesPaymentRequestV02MC(Box<ChargesPaymentRequestV02>)

camt.106.001.02.mc - Charges Payment Request (Multi-Currency)

§

ChequePresentmentNotificationV01(Box<ChequePresentmentNotificationV01>)

camt.107.001.01 - Cheque Presentment Notification

§

ChequeCancellationOrStopRequestV01(Box<ChequeCancellationOrStopRequestV01>)

camt.108.001.01 - Cheque Cancellation or Stop Request

§

ChequeCancellationOrStopReportV01(Box<ChequeCancellationOrStopReportV01>)

camt.109.001.01 - Cheque Cancellation or Stop Report

§

FIToFIPaymentStatusReportV10(Box<FIToFIPaymentStatusReportV10>)

pacs.002.001.10 - FI to FI Payment Status Report

§

FIToFICustomerDirectDebitV08(Box<FIToFICustomerDirectDebitV08>)

pacs.003.001.08 - FI to FI Customer Direct Debit

§

PaymentReturnV09(Box<PaymentReturnV09>)

pacs.004.001.09 - Payment Return

§

FIToFICustomerCreditTransferV08(Box<FIToFICustomerCreditTransferV08>)

pacs.008.001.08 - FI to FI Customer Credit Transfer

§

FIToFICustomerCreditTransferV08STP(Box<FIToFICustomerCreditTransferV08>)

pacs.008.001.08.stp - FI to FI Customer Credit Transfer (STP)

§

FinancialInstitutionCreditTransferV08(Box<FinancialInstitutionCreditTransferV08>)

pacs.009.001.08 - Financial Institution Credit Transfer

§

FinancialInstitutionCreditTransferV08ADV(Box<FinancialInstitutionCreditTransferV08>)

pacs.009.001.08.adv - Financial Institution Credit Transfer (Advice)

§

FinancialInstitutionCreditTransferV08COV(Box<FinancialInstitutionCreditTransferV08>)

pacs.009.001.08.cov - Financial Institution Credit Transfer (Cover)

§

CustomerCreditTransferInitiationV09(Box<CustomerCreditTransferInitiationV09>)

pain.001.001.09 - Customer Credit Transfer Initiation

§

CustomerPaymentStatusReportV10(Box<CustomerPaymentStatusReportV10>)

pain.002.001.10 - Customer Payment Status Report

§

CustomerDirectDebitInitiationV08(Box<CustomerDirectDebitInitiationV08>)

pain.008.001.08 - Customer Direct Debit Initiation

§

UNKNOWN

Unknown or unsupported document type

Implementations§

Source§

impl Document

Source

pub fn validate(&self) -> Result<(), ValidationError>

Validates the document according to ISO20022 and CBPR+ specifications

Source

pub fn message_type(&self) -> &'static str

Returns the message type identifier for the document

Source

pub fn is_cbpr_plus_compliant(&self) -> bool

Returns whether the document is CBPR+ compliant

Trait Implementations§

Source§

impl Clone for Document

Source§

fn clone(&self) -> Document

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Document

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Document

Source§

fn default() -> Document

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Document

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Document

Source§

fn eq(&self, other: &Document) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Document

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Document

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,