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
- Line count: Minimum 1, maximum 4 lines
- Line length: Maximum 35 characters per line
- Character set: SWIFT character set only
- Content: Each line must contain meaningful information
- Empty lines: Not permitted
- Control characters: Not allowed
- 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
impl Field57D
Sourcepub fn new(lines: Vec<String>) -> Result<Self, ParseError>
pub fn new(lines: Vec<String>) -> Result<Self, ParseError>
Create a new Field57D with validation
Sourcepub fn from_string(content: impl Into<String>) -> Result<Self, ParseError>
pub fn from_string(content: impl Into<String>) -> Result<Self, ParseError>
Create a new Field57D from a single line
Sourcepub fn add_line(&mut self, line: impl Into<String>) -> Result<(), ParseError>
pub fn add_line(&mut self, line: impl Into<String>) -> Result<(), ParseError>
Add a line to the field
Sourcepub fn line_count(&self) -> usize
pub fn line_count(&self) -> usize
Get the number of lines
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get human-readable description