Enum AppHeader

Source
pub enum AppHeader {
Show 30 variants BusinessApplicationHeaderV02Admi024_001_01(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt025_001_08(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt029_001(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt052_001_08(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt053_001_08(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt054_001(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt055_001_08(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt056_001_08(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt057_001_06(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt058_001_08(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt060_001_05(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt105_001_02(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt105_001_02mc(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt106_001_02(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt106_001_02mc(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt107_001_01(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt108_001_01(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Camt109_001_01(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pacs002_001_10(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pacs003_001_08(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pacs004_001_09(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pacs008_001_08(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pacs008_001_08stp(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pacs009_001_08(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pacs009_001_08adv(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pacs009_001_08cov(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pain001_001_09(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pain002_001_10(Box<BusinessApplicationHeaderV02>), BusinessApplicationHeaderV02Pain008_001_08(Box<BusinessApplicationHeaderV02>), UNKNOWN,
}
Expand description

AppHeader represents the application header container for all supported CBPR+ ISO20022 message types

Variants§

§

BusinessApplicationHeaderV02Admi024_001_01(Box<BusinessApplicationHeaderV02>)

admi.024.001.01 - Notification of Correspondence Header

§

BusinessApplicationHeaderV02Camt025_001_08(Box<BusinessApplicationHeaderV02>)

camt.025.001.08 - Receipt Header

§

BusinessApplicationHeaderV02Camt029_001(Box<BusinessApplicationHeaderV02>)

camt.029.001 - Resolution of Investigation Header

§

BusinessApplicationHeaderV02Camt052_001_08(Box<BusinessApplicationHeaderV02>)

camt.052.001.08 - Bank to Customer Account Report Header

§

BusinessApplicationHeaderV02Camt053_001_08(Box<BusinessApplicationHeaderV02>)

camt.053.001.08 - Bank to Customer Statement Header

§

BusinessApplicationHeaderV02Camt054_001(Box<BusinessApplicationHeaderV02>)

camt.054.001 - Bank to Customer Debit Credit Notification Header

§

BusinessApplicationHeaderV02Camt055_001_08(Box<BusinessApplicationHeaderV02>)

camt.055.001.08 - Customer Payment Cancellation Request Header

§

BusinessApplicationHeaderV02Camt056_001_08(Box<BusinessApplicationHeaderV02>)

camt.056.001.08 - FI to FI Payment Cancellation Request Header

§

BusinessApplicationHeaderV02Camt057_001_06(Box<BusinessApplicationHeaderV02>)

camt.057.001.06 - Notification to Receive Header

§

BusinessApplicationHeaderV02Camt058_001_08(Box<BusinessApplicationHeaderV02>)

camt.058.001.08 - Notification to Receive Cancellation Advice Header

§

BusinessApplicationHeaderV02Camt060_001_05(Box<BusinessApplicationHeaderV02>)

camt.060.001.05 - Account Reporting Request Header

§

BusinessApplicationHeaderV02Camt105_001_02(Box<BusinessApplicationHeaderV02>)

camt.105.001.02 - Charges Payment Notification Header

§

BusinessApplicationHeaderV02Camt105_001_02mc(Box<BusinessApplicationHeaderV02>)

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

§

BusinessApplicationHeaderV02Camt106_001_02(Box<BusinessApplicationHeaderV02>)

camt.106.001.02 - Charges Payment Request Header

§

BusinessApplicationHeaderV02Camt106_001_02mc(Box<BusinessApplicationHeaderV02>)

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

§

BusinessApplicationHeaderV02Camt107_001_01(Box<BusinessApplicationHeaderV02>)

camt.107.001.01 - Cheque Presentment Notification Header

§

BusinessApplicationHeaderV02Camt108_001_01(Box<BusinessApplicationHeaderV02>)

camt.108.001.01 - Cheque Cancellation or Stop Request Header

§

BusinessApplicationHeaderV02Camt109_001_01(Box<BusinessApplicationHeaderV02>)

camt.109.001.01 - Cheque Cancellation or Stop Report Header

§

BusinessApplicationHeaderV02Pacs002_001_10(Box<BusinessApplicationHeaderV02>)

pacs.002.001.10 - FI to FI Payment Status Report Header

§

BusinessApplicationHeaderV02Pacs003_001_08(Box<BusinessApplicationHeaderV02>)

pacs.003.001.08 - FI to FI Customer Direct Debit Header

§

BusinessApplicationHeaderV02Pacs004_001_09(Box<BusinessApplicationHeaderV02>)

pacs.004.001.09 - Payment Return Header

§

BusinessApplicationHeaderV02Pacs008_001_08(Box<BusinessApplicationHeaderV02>)

pacs.008.001.08 - FI to FI Customer Credit Transfer Header

§

BusinessApplicationHeaderV02Pacs008_001_08stp(Box<BusinessApplicationHeaderV02>)

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

§

BusinessApplicationHeaderV02Pacs009_001_08(Box<BusinessApplicationHeaderV02>)

pacs.009.001.08 - Financial Institution Credit Transfer Header

§

BusinessApplicationHeaderV02Pacs009_001_08adv(Box<BusinessApplicationHeaderV02>)

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

§

BusinessApplicationHeaderV02Pacs009_001_08cov(Box<BusinessApplicationHeaderV02>)

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

§

BusinessApplicationHeaderV02Pain001_001_09(Box<BusinessApplicationHeaderV02>)

pain.001.001.09 - Customer Credit Transfer Initiation Header

§

BusinessApplicationHeaderV02Pain002_001_10(Box<BusinessApplicationHeaderV02>)

pain.002.001.10 - Customer Payment Status Report Header

§

BusinessApplicationHeaderV02Pain008_001_08(Box<BusinessApplicationHeaderV02>)

pain.008.001.08 - Customer Direct Debit Initiation Header

§

UNKNOWN

Unknown or unsupported application header type

Implementations§

Source§

impl AppHeader

Source

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

Validates the application header according to ISO20022 and CBPR+ specifications

Source

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

Returns the message type identifier for the application header

Source

pub fn is_cbpr_plus_compliant(&self) -> bool

Returns whether the application header is CBPR+ compliant

Trait Implementations§

Source§

impl Clone for AppHeader

Source§

fn clone(&self) -> AppHeader

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 AppHeader

Source§

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

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

impl Default for AppHeader

Source§

fn default() -> AppHeader

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

impl<'de> Deserialize<'de> for AppHeader

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 AppHeader

Source§

fn eq(&self, other: &AppHeader) -> 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 AppHeader

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 AppHeader

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>,