Struct MT104

Source
pub struct MT104 {
Show 19 fields pub field_20: Field20, pub field_21r: Option<Field21>, pub field_23e: Option<Field23E>, pub field_21e: Option<Field21>, pub field_30: Field30, pub field_51a: Option<GenericBicField>, pub field_50a_instructing: Option<Field50>, pub field_50a_creditor: Option<Field50>, pub field_52a: Option<GenericBicField>, pub field_26t: Option<Field26T>, pub field_77b: Option<Field77B>, pub field_71a: Option<Field71A>, pub field_72: Option<Field72>, pub transactions: Vec<MT104Transaction>, pub field_32b: Option<GenericCurrencyAmountField>, pub field_19: Option<GenericBalanceField>, pub field_71f: Option<GenericCurrencyAmountField>, pub field_71g: Option<GenericCurrencyAmountField>, pub field_53a: Option<GenericBicField>,
}
Expand description

MT104: Customer Direct Debit

Message for customer direct debit instructions with transaction details.

Fields§

§field_20: Field20

Sender’s Reference - Field 20 (Mandatory) Unique reference assigned by the sender to identify this MT104 message.

§field_21r: Option<Field21>

Customer Specified Reference - Field 21R (Conditional) Required if Field 23E = RFDD (example condition)

§field_23e: Option<Field23E>

Instruction Code - Field 23E (Optional) Values: AUTH, NAUT, OTHR, RFDD, RTND

§field_21e: Option<Field21>

Registration Reference - Field 21E (Conditional) Subject to C3/C12 conditions

§field_30: Field30

Requested Execution Date - Field 30 (Mandatory) Format: YYMMDD

§field_51a: Option<GenericBicField>

Sending Institution - Field 51A (Optional) Only for FileAct

§field_50a_instructing: Option<Field50>

Instructing Party - Field 50a Seq A (Conditional) Options: C, L. Conditional C3 (if not present in any Seq B)

§field_50a_creditor: Option<Field50>

Creditor - Field 50a Seq A (Conditional) Options: A, K. Subject to C2, C4, C12

§field_52a: Option<GenericBicField>

Creditor’s Bank - Field 52a Seq A (Conditional) Options: A, C, D. Subject to C3, C12

§field_26t: Option<Field26T>

Transaction Type Code - Field 26T Seq A (Conditional) Subject to C3

§field_77b: Option<Field77B>

Regulatory Reporting - Field 77B Seq A (Conditional) Subject to C3

§field_71a: Option<Field71A>

Details of Charges - Field 71A Seq A (Conditional) Values: BEN, OUR, SHA

§field_72: Option<Field72>

Sender to Receiver Information - Field 72 (Conditional) Subject to C5

§transactions: Vec<MT104Transaction>

Transaction Details - Sequence B (Mandatory, Repetitive) Each element represents one direct debit transaction

§field_32b: Option<GenericCurrencyAmountField>

Settlement Amount - Field 32B Seq C (Optional) Currency & Settlement Amount - Sum or explicit

§field_19: Option<GenericBalanceField>

Sum of Amounts - Field 19 (Optional) Required if 32B not total of B-32Bs

§field_71f: Option<GenericCurrencyAmountField>

Sum of Sender’s Charges - Field 71F Seq C (Optional) If 71F in B

§field_71g: Option<GenericCurrencyAmountField>

Sum of Receiver’s Charges - Field 71G Seq C (Optional) If 71G in B

§field_53a: Option<GenericBicField>

Sender’s Correspondent - Field 53a (Optional) Reimbursement instruction

Implementations§

Source§

impl MT104

Source

pub fn validation_rules() -> &'static str

Get the validation rules for this message type

Trait Implementations§

Source§

impl Clone for MT104

Source§

fn clone(&self) -> MT104

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 MT104

Source§

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

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

impl<'de> Deserialize<'de> for MT104

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 MT104

Source§

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

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 MT104

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§

fn sample() -> Self

Generate a sample message with only mandatory fields
Source§

fn sample_minimal() -> Self

Generate a minimal sample (only mandatory fields)
Source§

fn sample_full() -> Self

Generate a full sample (all fields populated)
Source§

fn sample_with_config(config: &MessageConfig) -> Self

Generate a sample with configuration
Source§

impl StructuralPartialEq for MT104

Auto Trait Implementations§

§

impl Freeze for MT104

§

impl RefUnwindSafe for MT104

§

impl Send for MT104

§

impl Sync for MT104

§

impl Unpin for MT104

§

impl UnwindSafe for MT104

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

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