Struct Field56C

Source
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

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

Source

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

Create a new Field56C 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 Field56C

Source§

fn clone(&self) -> Field56C

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 Field56C

Source§

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

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

impl<'de> Deserialize<'de> for Field56C

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 Field56C

Source§

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

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

impl PartialEq for Field56C

Source§

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

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 Field56C

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 Field56C

Source§

impl StructuralPartialEq for Field56C

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