pub struct MT101Transaction {Show 16 fields
pub field_21: Field21NoOption,
pub field_21f: Option<Field21F>,
pub field_23e: Option<Vec<Field23E>>,
pub field_32b: Field32B,
pub field_50_instructing_party: Option<Field50InstructingParty>,
pub field_50_ordering_customer: Option<Field50OrderingCustomerFGH>,
pub field_52: Option<Field52AccountServicingInstitution>,
pub field_56: Option<Field56Intermediary>,
pub field_57: Option<Field57AccountWithInstitution>,
pub field_59: Field59,
pub field_70: Option<Field70>,
pub field_77b: Option<Field77B>,
pub field_33b: Option<Field33B>,
pub field_71a: Field71A,
pub field_25a: Option<Field25A>,
pub field_36: Option<Field36>,
}
Expand description
MT101 Transaction (Sequence B)
§Purpose
Represents a single transaction within an MT101 message. Each occurrence provides details for one individual funds transfer request.
§Field Details
- 21: Transaction Reference (mandatory) - Unique reference for this transaction
- 21F: F/X Deal Reference - Required when field 36 is present (NVR C1)
- 23E: Instruction Code - Special instructions (e.g., EQUI for equivalent transfers)
- 32B: Currency/Transaction Amount - The amount to be transferred
- 33B: Currency/Original Amount - Used for currency conversions (NVR C2, C5)
- 36: Exchange Rate - Required when 33B present and amount ≠ 0 (NVR C2)
§Party Chain
The transaction flow follows: Instructing Party → Ordering Customer → Account Servicing Institution → Intermediary → Account With Institution → Beneficiary
§Validation Notes
- If 36 present, 21F must be present (C1)
- If 33B present and 32B amount ≠ 0, then 36 mandatory (C2)
- Currency in 33B must differ from 32B (C5)
- If 56a present, 57a must be present (C7)
Fields§
§field_21: Field21NoOption
§field_21f: Option<Field21F>
§field_23e: Option<Vec<Field23E>>
§field_32b: Field32B
§field_50_instructing_party: Option<Field50InstructingParty>
§field_50_ordering_customer: Option<Field50OrderingCustomerFGH>
§field_52: Option<Field52AccountServicingInstitution>
§field_56: Option<Field56Intermediary>
§field_57: Option<Field57AccountWithInstitution>
§field_59: Field59
§field_70: Option<Field70>
§field_77b: Option<Field77B>
§field_33b: Option<Field33B>
§field_71a: Field71A
§field_25a: Option<Field25A>
§field_36: Option<Field36>
Implementations§
Trait Implementations§
Source§impl Clone for MT101Transaction
impl Clone for MT101Transaction
Source§fn clone(&self) -> MT101Transaction
fn clone(&self) -> MT101Transaction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MT101Transaction
impl Debug for MT101Transaction
Source§impl<'de> Deserialize<'de> for MT101Transaction
impl<'de> Deserialize<'de> for MT101Transaction
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
Source§impl PartialEq for MT101Transaction
impl PartialEq for MT101Transaction
Source§impl Serialize for MT101Transaction
impl Serialize for MT101Transaction
Source§impl SwiftField for MT101Transaction
impl SwiftField for MT101Transaction
Source§fn to_swift_string(&self) -> String
fn to_swift_string(&self) -> String
Convert field back to SWIFT string format
Source§fn format_spec() -> &'static str
fn format_spec() -> &'static str
Get field format specification
Source§impl SwiftMessageBody for MT101Transaction
impl SwiftMessageBody for MT101Transaction
Source§fn message_type() -> &'static str
fn message_type() -> &'static str
Get the message type identifier (e.g., “103”, “202”)
Source§fn from_fields(
fields: HashMap<String, Vec<(String, usize)>>,
) -> SwiftResult<Self>
fn from_fields( fields: HashMap<String, Vec<(String, usize)>>, ) -> SwiftResult<Self>
Create from field map with sequential consumption tracking
Source§fn from_fields_with_config(
fields: HashMap<String, Vec<(String, usize)>>,
config: &ParserConfig,
) -> Result<ParseResult<Self>, ParseError>
fn from_fields_with_config( fields: HashMap<String, Vec<(String, usize)>>, config: &ParserConfig, ) -> Result<ParseResult<Self>, ParseError>
Create from field map with configuration for error collection
Source§fn required_fields() -> Vec<&'static str>
fn required_fields() -> Vec<&'static str>
Get required field tags for this message type
Source§fn optional_fields() -> Vec<&'static str>
fn optional_fields() -> Vec<&'static str>
Get optional field tags for this message type
impl StructuralPartialEq for MT101Transaction
Auto Trait Implementations§
impl Freeze for MT101Transaction
impl RefUnwindSafe for MT101Transaction
impl Send for MT101Transaction
impl Sync for MT101Transaction
impl Unpin for MT101Transaction
impl UnwindSafe for MT101Transaction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more