pub struct Field57C {
pub account_number: String,
}
Expand description
§Field 57C: Account With Institution (Option C)
§Overview
Field 57C identifies the account with institution in SWIFT payment messages using an account number or identifier. This field provides a direct account-based identification method when the beneficiary’s bank 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 for the final credit destination.
§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: Beneficiary’s bank account identifier
- Can be account number, clearing code, or routing identifier
- Maximum 34 characters
- Must comply with SWIFT character set
§Usage Context
Field 57C 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 for beneficiary banks
- Account-based identification: When BIC is not available or preferred
- Clearing system integration: Interfacing with local clearing systems
- Direct account crediting: Specifying exact account for final credit
- Cost optimization: Reducing correspondent banking complexity
- Regional payments: Supporting regional payment networks
§Examples
:57C:/BENEFICIARYACCT123456
└─── Beneficiary's bank account number
:57C:/CLRCODE987654321
└─── Clearing code for beneficiary's bank
:57C:/FEDWIRE021000021
└─── US Federal Reserve routing number
:57C:/SORTCODE654321
└─── UK sort code for beneficiary's bank
:57C:/IBAN12345678901234567890
└─── International Bank Account Number
§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
- IBAN: International Bank Account 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 57C alternative to 57A/57B/57D (Error: C57)
- Must be valid for receiving country’s system (Error: T50)
- Account format must be recognizable (Error: T51)
Fields§
§account_number: String
Account number (up to 34 characters)
Implementations§
Source§impl Field57C
impl Field57C
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 Field57C 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 Field57C
impl<'de> Deserialize<'de> for Field57C
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 Field57C
impl SwiftField for Field57C
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 Field57C
impl StructuralPartialEq for Field57C
Auto Trait Implementations§
impl Freeze for Field57C
impl RefUnwindSafe for Field57C
impl Send for Field57C
impl Sync for Field57C
impl Unpin for Field57C
impl UnwindSafe for Field57C
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