Struct MT104Transaction

Source
pub struct MT104Transaction {
Show 19 fields pub field_21: Field21, pub field_23e: Option<Field23E>, pub field_21c: Option<Field21>, pub field_21d: Option<Field21>, pub field_21e: Option<Field21>, pub field_32b: GenericCurrencyAmountField, pub field_50a_instructing: Option<Field50>, pub field_50a_creditor: Option<Field50>, pub field_52a: Option<GenericBicField>, pub field_57a: Option<GenericBicField>, pub field_59a: Field59, pub field_70: Option<Field70>, pub field_26t: Option<Field26T>, pub field_77b: Option<Field77B>, pub field_33b: Option<GenericCurrencyAmountField>, pub field_71a: Option<Field71A>, pub field_71f: Option<GenericCurrencyAmountField>, pub field_71g: Option<GenericCurrencyAmountField>, pub field_36: Option<Field36>,
}
Expand description

§MT104 Transaction (Sequence B)

Single direct debit transaction within an MT104 message.

Fields§

§field_21: Field21

Transaction Reference - Field 21 (Mandatory) Unique per transaction

§field_23e: Option<Field23E>

Instruction Code - Field 23E Seq B (Conditional) Depends on 23E in Seq A (C1)

§field_21c: Option<Field21>

Mandate Reference - Field 21C (Optional) Optional mandate info

§field_21d: Option<Field21>

Direct Debit Reference - Field 21D (Optional) Optional ref for transaction

§field_21e: Option<Field21>

Registration Reference - Field 21E Seq B (Conditional) C3 / C12

§field_32b: GenericCurrencyAmountField

Currency and Amount - Field 32B (Mandatory) ISO 4217 currency, comma for decimals

§field_50a_instructing: Option<Field50>

Instructing Party - Field 50a Seq B (Conditional) Must not appear if in Seq A (C3)

§field_50a_creditor: Option<Field50>

Creditor - Field 50a Seq B (Conditional) C2, C4, C12

§field_52a: Option<GenericBicField>

Creditor’s Bank - Field 52a Seq B (Conditional) C3, C12

§field_57a: Option<GenericBicField>

Debtor’s Bank - Field 57a (Optional) Optional

§field_59a: Field59

Debtor - Field 59a (Mandatory) Must include account

§field_70: Option<Field70>

Remittance Information - Field 70 (Optional) Codes: INV, IPI, RFB, ROC

§field_26t: Option<Field26T>

Transaction Type Code - Field 26T Seq B (Conditional) Purpose info

§field_77b: Option<Field77B>

Regulatory Reporting - Field 77B Seq B (Conditional) Optional unless conflict with A

§field_33b: Option<GenericCurrencyAmountField>

Original Ordered Amount - Field 33B (Optional) Must differ from 32B

§field_71a: Option<Field71A>

Details of Charges - Field 71A Seq B (Conditional) Cond. C3

§field_71f: Option<GenericCurrencyAmountField>

Sender’s Charges - Field 71F (Conditional) C6, C12

§field_71g: Option<GenericCurrencyAmountField>

Receiver’s Charges - Field 71G (Conditional) C6, C12

§field_36: Option<Field36>

Exchange Rate - Field 36 (Conditional) Required if 33B present & different from 32B

Implementations§

Source§

impl MT104Transaction

Source

pub fn validation_rules() -> &'static str

Get the validation rules for this message type

Trait Implementations§

Source§

impl Clone for MT104Transaction

Source§

fn clone(&self) -> MT104Transaction

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for MT104Transaction

Source§

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

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

impl<'de> Deserialize<'de> for MT104Transaction

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 MT104Transaction

Source§

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

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

const 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 MT104Transaction

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 SwiftMessageBody for MT104Transaction

Source§

fn message_type() -> &'static str

Get the message type identifier (e.g., “103”, “202”)
Source§

fn from_fields(fields: HashMap<String, Vec<String>>) -> SwiftResult<Self>

Create from field map
Source§

fn to_fields(&self) -> HashMap<String, Vec<String>>

Convert to field map
Source§

fn required_fields() -> Vec<&'static str>

Get required field tags for this message type
Source§

fn optional_fields() -> Vec<&'static str>

Get optional field tags for this message type
Source§

impl StructuralPartialEq for MT104Transaction

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