pub struct Field54D {
pub name_and_address: Vec<String>,
}
Expand description
§Field 54D: Receiver’s Correspondent (Option D)
§Overview
Field 54D identifies the receiver’s correspondent institution using name and address information rather than a BIC code or party identifier. This option provides the most detailed identification method for receiver’s correspondents and is used when full institutional details are required for regulatory compliance, routing, or when other identification methods are not available or sufficient.
§Format Specification
Format: 4*35x
- 4*35x: Up to 4 lines of name and address information
- Line length: Maximum 35 characters per line
- Character set: SWIFT character set (printable ASCII)
- Content: Institution name, street address, city, postal code, country
§Structure
Line 1: Institution Name (required)
Line 2: Street Address/Building Number
Line 3: City, State/Province, Postal Code
Line 4: Country (recommended for international)
§Usage Context
Field 54D is used in:
- MT103: Single Customer Credit Transfer (when 54A/54B not applicable)
- 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-SWIFT institutions: Identifying institutions without BIC codes
- Regulatory compliance: Providing complete address for compliance screening
- Small institutions: Local banks, credit unions, or regional institutions
- Enhanced due diligence: Meeting KYC requirements for correspondent details
- Sanctions screening: Enabling comprehensive name/address verification
- Audit trails: Maintaining detailed receiver’s correspondent records
- Cross-border routing: Facilitating international payment routing
§Examples
:54D:RECEIVER CORRESPONDENT BANK
789 BANKING BOULEVARD
SINGAPORE 049910
SINGAPORE
└─── Singapore correspondent bank with full address
:54D:BANQUE CORRESPONDANTE LOCALE
123 RUE DES FINANCES
PARIS 75001 FRANCE
└─── French correspondent bank (3 lines)
:54D:COMMUNITY CORRESPONDENT BANK
456 CORRESPONDENT AVENUE
MIDDLETOWN CA 90210
└─── US community bank (minimal address)
:54D:BANCO CORRESPONSAL REGIONAL
SUCURSAL PRINCIPAL
AVENIDA LIBERTAD 789
MADRID 28001 SPAIN
└─── Spanish correspondent with detailed address
§Address Format Guidelines
§Line 1: Institution Name (Required)
- Full legal name of the receiver’s correspondent institution
- Include organizational form (Bank, Credit Union, Trust, etc.)
- Avoid abbreviations when possible
- Maximum 35 characters
§Line 2: Street Address (Recommended)
- Building number and street name
- Suite/floor information if applicable
- PO Box if street address not available
- Maximum 35 characters
§Line 3: City and Postal Information (Recommended)
- City name, state/province abbreviation
- Postal code or ZIP code
- Administrative district if required
- Maximum 35 characters
§Line 4: Country (Optional but Recommended)
- Full country name (preferred) or ISO code
- Required for international correspondent relationships
- Helps with routing and compliance screening
- Maximum 35 characters
§Address Standards
- Use standard postal abbreviations for states/provinces
- Include postal/ZIP codes when available
- Spell out country names in full when possible
- Avoid special characters and diacritical marks
- Follow local address formatting conventions
- Ensure consistency with official institution records
§Validation Rules
- Minimum content: At least 1 line required
- Maximum lines: No more than 4 lines allowed
- Line length: Each line maximum 35 characters
- Character validation: Only printable ASCII characters
- Content requirement: Must contain meaningful institution information
- Line ordering: Institution name should be in first line
§Network Validated Rules (SWIFT Standards)
- Minimum 1 line, maximum 4 lines allowed (Error: C54)
- Each line cannot exceed 35 characters (Error: T14)
- Characters must be from SWIFT character set (Error: T61)
- Lines cannot be empty (Error: T11)
- Must contain institution name in first line (Error: C55)
- Field 54D alternative to 54A/54B (Error: C54)
- Address should be verifiable institution address (Error: C56)
Fields§
§name_and_address: Vec<String>
Name and address lines (up to 4 lines of 35 characters each)
Implementations§
Source§impl Field54D
impl Field54D
Sourcepub fn new(name_and_address: Vec<String>) -> Result<Self, ParseError>
pub fn new(name_and_address: Vec<String>) -> Result<Self, ParseError>
Create a new Field54D 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 from a single string, splitting on newlines
Sourcepub fn name_and_address(&self) -> &[String]
pub fn name_and_address(&self) -> &[String]
Get the name and address lines
Sourcepub fn line_count(&self) -> usize
pub fn line_count(&self) -> usize
Get the number of lines
Sourcepub fn add_line(&mut self, line: String) -> Result<(), ParseError>
pub fn add_line(&mut self, line: String) -> Result<(), ParseError>
Add a line of name/address information
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get human-readable description
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field54D
impl<'de> Deserialize<'de> for Field54D
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 SwiftField for Field54D
impl SwiftField for Field54D
Source§fn to_swift_string(&self) -> String
fn to_swift_string(&self) -> String
Convert field back to SWIFT string format
Source§fn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
Validate field according to SWIFT format rules
Source§fn format_spec() -> &'static str
fn format_spec() -> &'static str
Get field format specification
impl Eq for Field54D
impl StructuralPartialEq for Field54D
Auto Trait Implementations§
impl Freeze for Field54D
impl RefUnwindSafe for Field54D
impl Send for Field54D
impl Sync for Field54D
impl Unpin for Field54D
impl UnwindSafe for Field54D
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