Struct Field57D

Source
pub struct Field57D {
    pub lines: Vec<String>,
}
Expand description

§Field 57D: Account With Institution (Option D)

§Overview

Field 57D identifies the account with institution in SWIFT payment messages using name and address information. This field provides an alternative identification method when BIC codes or account numbers are not available or suitable for the beneficiary’s bank. It allows for detailed specification of the account with institution through structured name and address data, supporting various international payment scenarios where traditional identifiers may not be sufficient for proper payment delivery.

§Format Specification

Format: 4*35x

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

§Structure

BENEFICIARY BANK NAME LIMITED
789 FINANCIAL CENTER BOULEVARD
SINGAPORE 018956
REPUBLIC OF SINGAPORE
│                              │
└──────────────────────────────┘
       Up to 35 characters per line
       Maximum 4 lines

§Field Components

  • Institution Name: Official name of beneficiary’s bank
  • Street Address: Physical address details
  • City/State: Location information with postal code
  • Country: Country of domicile
  • Additional Info: Branch details, building information, etc.

§Usage Context

Field 57D 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

  • Non-BIC institutions: Identifying beneficiary banks without BIC codes
  • Regional banks: Supporting local and regional financial institutions
  • Correspondent banking: Detailed beneficiary bank identification
  • Cross-border payments: International payment routing and delivery
  • Regulatory compliance: Meeting beneficiary bank identification requirements
  • Payment transparency: Providing clear destination bank details

§Examples

:57D:BENEFICIARY BANK LIMITED
456 BANKING STREET
LONDON EC2V 8RF
UNITED KINGDOM
└─── UK beneficiary bank with full address

:57D:REGIONAL SAVINGS BANK
HAUPTSTRASSE 789
60311 FRANKFURT AM MAIN
GERMANY
└─── German regional bank identification

:57D:CITY COMMERCIAL BANK
FINANCIAL DISTRICT
MUMBAI 400001
INDIA
└─── Indian commercial bank details

:57D:PROVINCIAL CREDIT UNION
RUE DE LA BANQUE 456
75001 PARIS
FRANCE
└─── French credit union with address

§Name and Address Guidelines

  • Line 1: Institution name (required)
  • Line 2: Street address or building details
  • Line 3: City, state/province, postal code
  • Line 4: Country name
  • Formatting: Clear, unambiguous identification
  • Language: English preferred for international payments
  • Accuracy: Must match official institution records

§Validation Rules

  1. Line count: Minimum 1, maximum 4 lines
  2. Line length: Maximum 35 characters per line
  3. Character set: SWIFT character set only
  4. Content: Each line must contain meaningful information
  5. Empty lines: Not permitted
  6. Control characters: Not allowed
  7. Special characters: Limited to SWIFT-approved set

§Network Validated Rules (SWIFT Standards)

  • Maximum 4 lines allowed (Error: T26)
  • Each line maximum 35 characters (Error: T50)
  • Must use SWIFT character set only (Error: T61)
  • At least one line required (Error: T13)
  • No empty lines permitted (Error: T40)
  • Field 57D alternative to 57A/57B/57C (Error: C57)
  • Institution must be identifiable (Error: T51)
  • Address must be complete and valid (Error: T52)

Fields§

§lines: Vec<String>

Name and address lines (up to 4 lines of 35 characters each)

Implementations§

Source§

impl Field57D

Source

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

Create a new Field57D with validation

Source

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

Create a new Field57D from a single line

Source

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

Add a line to the field

Source

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

Get a specific line by index (0-based)

Source

pub fn line_count(&self) -> usize

Get the number of lines

Source

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

Get all lines

Source

pub fn description(&self) -> String

Get human-readable description

Trait Implementations§

Source§

impl Clone for Field57D

Source§

fn clone(&self) -> Field57D

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 Field57D

Source§

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

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

impl<'de> Deserialize<'de> for Field57D

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 Field57D

Source§

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

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

impl PartialEq for Field57D

Source§

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

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 Field57D

Source§

fn parse(content: &str) -> Result<Self>

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 Field57D

Source§

impl StructuralPartialEq for Field57D

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