Struct Field57C

Source
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

  1. Length: Maximum 34 characters
  2. Format: Must start with forward slash (/)
  3. Character set: SWIFT character set only
  4. Content: Cannot be empty after delimiter
  5. Special characters: Limited to SWIFT-approved characters
  6. 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

Source

pub fn new(account_number: impl Into<String>) -> Result<Self, ParseError>

Create a new Field57C with validation

Source

pub fn account_number(&self) -> &str

Get the account number

Source

pub fn description(&self) -> String

Get human-readable description

Trait Implementations§

Source§

impl Clone for Field57C

Source§

fn clone(&self) -> Field57C

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 Field57C

Source§

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

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

impl<'de> Deserialize<'de> for Field57C

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 Field57C

Source§

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

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

impl PartialEq for Field57C

Source§

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

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 Field57C

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 Field57C

Source§

impl StructuralPartialEq for Field57C

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