pub struct MT205 {Show 18 fields
pub field_20: GenericReferenceField,
pub field_21: GenericReferenceField,
pub field_32a: Field32A,
pub field_52a: GenericBicField,
pub field_58a: GenericBicField,
pub field_13c: Option<Vec<Field13C>>,
pub field_53a: Option<GenericBicField>,
pub field_56a: Option<GenericBicField>,
pub field_57a: Option<GenericBicField>,
pub field_72: Option<GenericMultiLine6x35>,
pub field_50a: Option<Field50A>,
pub field_52a_seq_b: Option<GenericBicField>,
pub field_56a_seq_b: Option<GenericBicField>,
pub field_57a_seq_b: Option<GenericBicField>,
pub field_59a: Option<GenericBicField>,
pub field_70: Option<GenericMultiLine4x35>,
pub field_72_seq_b: Option<GenericMultiLine6x35>,
pub field_33b: Option<GenericCurrencyAmountField>,
}
Expand description
§MT205: General Financial Institution Transfer
This message enables financial institutions to transfer funds between themselves for their own account or for the account of their customers. Similar to MT202 but with key structural differences: field 54a is not present and field 52a is always mandatory.
§Key Differences from MT202
- Field 54a: Not present in MT205 (completely absent)
- Field 52a: Always mandatory (no fallback to sender BIC)
- Settlement Logic: Uses METAFCT003 (simplified scenarios)
- Cover Detection: Based on Sequence B presence
§Message Variants
- MT205: Standard financial institution transfer
- MT205.COV: Cover message for customer credit transfers
- MT205.REJT: Rejection message
- MT205.RETN: Return message
§Structure
- Sequence A: Bank-to-bank financial institution details
- Sequence B: Customer details (COV variant only)
Fields§
§field_20: GenericReferenceField
§field_21: GenericReferenceField
§field_32a: Field32A
§field_52a: GenericBicField
§field_58a: GenericBicField
§field_13c: Option<Vec<Field13C>>
§field_53a: Option<GenericBicField>
§field_56a: Option<GenericBicField>
§field_57a: Option<GenericBicField>
§field_72: Option<GenericMultiLine6x35>
§field_50a: Option<Field50A>
§field_52a_seq_b: Option<GenericBicField>
§field_56a_seq_b: Option<GenericBicField>
§field_57a_seq_b: Option<GenericBicField>
§field_59a: Option<GenericBicField>
§field_70: Option<GenericMultiLine4x35>
§field_72_seq_b: Option<GenericMultiLine6x35>
§field_33b: Option<GenericCurrencyAmountField>
Implementations§
Source§impl MT205
impl MT205
Sourcepub fn validation_rules() -> &'static str
pub fn validation_rules() -> &'static str
Get the validation rules for this message type
Source§impl MT205
impl MT205
Sourcepub fn has_reject_codes(&self) -> bool
pub fn has_reject_codes(&self) -> bool
Check if this MT202 message contains reject codes
Reject messages are identified by checking:
- Field 20 (Transaction Reference) for “REJT” prefix or content
- Field 72 (Sender to Receiver Information) containing
/REJT/
codes - Additional structured reject information in field 72
Sourcepub fn has_return_codes(&self) -> bool
pub fn has_return_codes(&self) -> bool
Check if this MT202 message contains return codes
Return messages are identified by checking:
- Field 20 (Transaction Reference) for “RETN” prefix or content
- Field 72 (Sender to Receiver Information) containing
/RETN/
codes - Additional structured return information in field 72
Sourcepub fn is_cover_message(&self) -> bool
pub fn is_cover_message(&self) -> bool
Check if this MT205 message is a Cover (COV) message
COV messages are distinguished by:
- Presence of Sequence B customer fields (50a, 59a)
- Additional underlying customer credit transfer details
Based on the MT205 specification: “Cover Detection: Based on presence of Sequence B customer fields (50a, 59a)”
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MT205
impl<'de> Deserialize<'de> for MT205
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 SwiftMessageBody for MT205
impl SwiftMessageBody for MT205
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>>) -> SwiftResult<Self>
fn from_fields(fields: HashMap<String, Vec<String>>) -> SwiftResult<Self>
Create from field map
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 MT205
Auto Trait Implementations§
impl Freeze for MT205
impl RefUnwindSafe for MT205
impl Send for MT205
impl Sync for MT205
impl Unpin for MT205
impl UnwindSafe for MT205
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