Struct Field72

Source
pub struct Field72 {
    pub information: Vec<String>,
}
Expand description

§Field 72: Sender to Receiver Information

§Overview

Field 72 contains sender to receiver information in SWIFT payment messages, providing additional instructions, codes, or information that the sending institution wants to communicate to the receiving institution. This field serves as a communication channel for operational instructions, regulatory codes, special handling requirements, and other relevant information that supports proper payment processing and compliance.

§Format Specification

Format: 6*35x

  • 6*35x: Up to 6 lines of 35 characters each
  • Line structure: Free-form text for instructions and information
  • Character set: SWIFT character set (A-Z, 0-9, and limited special characters)
  • Line separation: Each line on separate row

§Structure

/ACC/BENEFICIARY ACCOUNT DETAILS
/BNF/ADDITIONAL BENEFICIARY INFO
/INS/SPECIAL HANDLING REQUIRED
/REC/REGULATORY REPORTING CODE
/FEE/CHARGE INSTRUCTIONS
/REM/ADDITIONAL REMITTANCE INFO
│                              │
└──────────────────────────────┘
       Up to 35 characters per line
       Maximum 6 lines

§Field Components

  • Instruction Codes: Structured codes for specific instructions
  • Regulatory Information: Compliance and reporting codes
  • Processing Instructions: Special handling requirements
  • Additional Details: Supplementary payment information
  • Communication Messages: Bank-to-bank communications

§Usage Context

Field 72 is used in:

  • MT103: Single Customer Credit Transfer
  • MT200: Financial Institution Transfer
  • MT202: General Financial Institution Transfer
  • MT202COV: Cover for customer credit transfer
  • MT205: Financial Institution Transfer for its own account

§Business Applications

  • Operational instructions: Special processing requirements
  • Regulatory compliance: Required reporting codes and information
  • Payment routing: Additional routing or handling instructions
  • Fee instructions: Charge allocation and billing details
  • Beneficiary information: Additional beneficiary details
  • Investigation support: Information for payment inquiries

§Common Instruction Codes

§/ACC/ - Account Information

  • Additional account details or instructions
  • Alternative account numbers or references
  • Account-specific processing requirements

§/BNF/ - Beneficiary Information

  • Additional beneficiary identification
  • Alternative beneficiary details
  • Beneficiary-specific instructions

§/INS/ - Special Instructions

  • Processing instructions for receiving bank
  • Handling requirements or restrictions
  • Operational guidance

§/REC/ - Regulatory Information

  • Regulatory reporting codes
  • Compliance-related information
  • Authority-required data

§/FEE/ - Fee Instructions

  • Charge allocation instructions
  • Fee payment arrangements
  • Billing-related information

§/REM/ - Additional Remittance

  • Supplementary remittance information
  • Extended payment descriptions
  • Reference details

§Examples

:72:/ACC/CREDIT TO ACCOUNT 123456789
└─── Account crediting instruction

:72:/BNF/JOHN DOE TRADING COMPANY
/INS/URGENT PROCESSING REQUIRED
/REC/REGULATORY CODE ABC123
└─── Multi-line instructions with codes

:72:/FEE/CHARGES TO BE SHARED
/REM/INVOICE REF INV-2024-001
└─── Fee and remittance instructions

:72:CORRESPONDENT BANK CHARGES APPLY
BENEFICIARY BANK TO DEDUCT FEES
PAYMENT FOR TRADE SETTLEMENT
└─── Free-form instructions without codes

§Information Categories

  • Processing instructions: How to handle the payment
  • Regulatory codes: Required compliance information
  • Routing details: Additional routing or correspondent instructions
  • Charge information: Fee allocation and payment instructions
  • Reference data: Additional reference numbers or codes
  • Special requirements: Urgent processing, holds, or restrictions

§Validation Rules

  1. Line count: Maximum 6 lines
  2. Line length: Maximum 35 characters per line
  3. Character set: SWIFT character set only
  4. Content: Should contain meaningful instructions or information
  5. Empty lines: Generally avoided for clarity
  6. Control characters: Not allowed
  7. Special characters: Limited to SWIFT-approved set

§Network Validated Rules (SWIFT Standards)

  • Maximum 6 lines allowed (Error: T26)
  • Each line maximum 35 characters (Error: T50)
  • Must use SWIFT character set only (Error: T61)
  • Content should be meaningful (Error: T40)
  • No control characters permitted (Error: T35)
  • Field is optional but widely used (Warning: W72)
  • Structured codes should follow conventions (Warning: W73)

Fields§

§information: Vec<String>

Information lines (up to 6 lines of 35 characters each)

Implementations§

Source§

impl Field72

Source

pub fn new(information: Vec<String>) -> Result<Self, ParseError>

Create a new Field72 with validation

Source

pub fn from_string(content: impl Into<String>) -> Result<Self, ParseError>

Create from a single string, splitting on newlines

Source

pub fn information(&self) -> &[String]

Get the information lines

Source

pub fn line_count(&self) -> usize

Get the number of lines

Source

pub fn line(&self, index: usize) -> Option<&str>

Get a specific line by index

Source

pub fn add_line(&mut self, line: String) -> Result<(), ParseError>

Add a line of information

Source

pub fn description(&self) -> String

Get human-readable description

Trait Implementations§

Source§

impl Clone for Field72

Source§

fn clone(&self) -> Field72

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 Field72

Source§

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

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

impl<'de> Deserialize<'de> for Field72

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 Display for Field72

Source§

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

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

impl PartialEq for Field72

Source§

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

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 SwiftField for Field72

Source§

fn parse(value: &str) -> Result<Self, ParseError>

Parse field value from string representation
Source§

fn to_swift_string(&self) -> String

Convert field back to SWIFT string format
Source§

fn validate(&self) -> ValidationResult

Validate field according to SWIFT format rules
Source§

fn format_spec() -> &'static str

Get field format specification
Source§

impl Eq for Field72

Source§

impl StructuralPartialEq for Field72

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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>,