pub struct Field56C {
pub account_number: String,
}
Expand description
§Field 56C: Intermediary Institution (Option C)
§Overview
Field 56C identifies an intermediary institution in SWIFT payment messages using an account number or identifier. This field provides an alternative to BIC-based identification when the intermediary institution is identified through an account number, clearing code, or other identifier system. This option is particularly useful in domestic payment systems or when specific account-based routing is required.
§Format Specification
Format: /34x
- 34x: Account number or identifier (up to 34 characters)
- Leading slash: Required field delimiter
- Character set: SWIFT character set (A-Z, 0-9, and limited special characters)
§Structure
/1234567890123456789012345678901234
│└─────────────────────────────────┘
│ Account number
└─ Required delimiter
§Field Components
- Account Number: Intermediary institution identifier
- Can be account number, clearing code, or routing identifier
- Maximum 34 characters
- Must comply with SWIFT character set
§Usage Context
Field 56C 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
- Domestic routing: Using national clearing codes
- Account-based identification: When BIC is not available or preferred
- Clearing system integration: Interfacing with local clearing systems
- Correspondent banking: Account-based correspondent identification
- Cost optimization: Reducing correspondent banking fees
- Regional payments: Supporting regional payment networks
§Examples
:56C:/INTERMEDIARYACCT123456
└─── Intermediary account number
:56C:/CLRCODE123456789
└─── Clearing code identifier
:56C:/FEDWIRE021000021
└─── US Federal Reserve routing number
:56C:/SORTCODE123456
└─── UK sort code based identifier
:56C:/IFSC0001234
└─── Indian Financial System Code
§Account Number Types
- Bank account numbers: Direct account identification
- Clearing codes: National clearing system codes
- Routing numbers: US Federal Reserve routing numbers
- Sort codes: UK banking sort codes
- IFSC codes: Indian Financial System Codes
- BSB numbers: Australian Bank State Branch numbers
- Transit numbers: Canadian transit numbers
§Validation Rules
- Length: Maximum 34 characters
- Format: Must start with forward slash (/)
- Character set: SWIFT character set only
- Content: Cannot be empty after delimiter
- Special characters: Limited to SWIFT-approved characters
- Control characters: Not permitted
§Network Validated Rules (SWIFT Standards)
- Account number cannot exceed 34 characters (Error: T14)
- Must use SWIFT character set only (Error: T61)
- Leading slash is mandatory (Error: T26)
- Account identifier cannot be empty (Error: T13)
- Field 56C alternative to 56A/56D (Error: C56)
- Must be valid for receiving country’s system (Error: T50)
Fields§
§account_number: String
Account number (up to 34 characters)
Implementations§
Source§impl Field56C
impl Field56C
Sourcepub fn new(account_number: impl Into<String>) -> Result<Self, ParseError>
pub fn new(account_number: impl Into<String>) -> Result<Self, ParseError>
Create a new Field56C with validation
Sourcepub fn account_number(&self) -> &str
pub fn account_number(&self) -> &str
Get the account number
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get human-readable description
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field56C
impl<'de> Deserialize<'de> for Field56C
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 Field56C
impl SwiftField for Field56C
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 Field56C
impl StructuralPartialEq for Field56C
Auto Trait Implementations§
impl Freeze for Field56C
impl RefUnwindSafe for Field56C
impl Send for Field56C
impl Sync for Field56C
impl Unpin for Field56C
impl UnwindSafe for Field56C
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