Struct Field56D

Source
pub struct Field56D {
    pub name_and_address: Vec<String>,
}
Expand description

§Field 56D: Intermediary Institution (Option D)

§Overview

Field 56D identifies an intermediary 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. It allows for detailed specification of the intermediary institution through structured name and address data, supporting various international payment routing scenarios where traditional identifiers may not be sufficient.

§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

INTERMEDIARY BANK NAME LIMITED
123 FINANCIAL DISTRICT AVENUE
NEW YORK NY 10005
UNITED STATES OF AMERICA
│                              │
└──────────────────────────────┘
       Up to 35 characters per line
       Maximum 4 lines

§Field Components

  • Institution Name: Official name of intermediary institution
  • Street Address: Physical address details
  • City/State: Location information
  • Country: Country of domicile
  • Additional Info: Branch details, postal codes, etc.

§Usage Context

Field 56D 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 institutions without BIC codes
  • Regional banks: Supporting local and regional financial institutions
  • Correspondent banking: Detailed intermediary identification
  • Cross-border payments: International payment routing
  • Regulatory compliance: Meeting identification requirements
  • Payment transparency: Providing clear intermediary details

§Examples

:56D:INTERMEDIARY BANK LIMITED
456 BANKING STREET
LONDON EC2V 8RF
UNITED KINGDOM
└─── UK intermediary bank with full address

:56D:REGIONAL COOPERATIVE BANK
HAUPTSTRASSE 123
60311 FRANKFURT AM MAIN
GERMANY
└─── German regional bank identification

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

:56D:PROVINCIAL SAVINGS BANK
RUE DE LA BANQUE 789
75001 PARIS
FRANCE
└─── French provincial bank 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

§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 56D alternative to 56A/56C (Error: C56)
  • Institution must be identifiable (Error: T51)

Fields§

§name_and_address: Vec<String>

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

Implementations§

Source§

impl Field56D

Source

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

Create a new Field56D 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 name_and_address(&self) -> &[String]

Get the name and address 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 name/address information

Source

pub fn description(&self) -> String

Get human-readable description

Trait Implementations§

Source§

impl Clone for Field56D

Source§

fn clone(&self) -> Field56D

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 Field56D

Source§

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

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

impl<'de> Deserialize<'de> for Field56D

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 Field56D

Source§

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

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

impl PartialEq for Field56D

Source§

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

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 Field56D

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 Field56D

Source§

impl StructuralPartialEq for Field56D

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