Struct Field53B

Source
pub struct Field53B {
    pub account_line_indicator: Option<String>,
    pub account_number: Option<String>,
    pub party_identifier: String,
}
Expand description

§Field 53B: Sender’s Correspondent (Option B)

§Overview

Field 53B identifies the sender’s correspondent institution using a party identifier rather than a BIC code. This option is used when the correspondent institution needs to be identified through an alternative identification scheme, such as a national bank code, clearing code, or proprietary identifier system.

§Format Specification

Format: [/1!a][/34x]35x

  • 1!a: Optional account line indicator (1 character)
  • 34x: Optional account number (up to 34 characters)
  • 35x: Party identifier (up to 35 characters)

§Structure

/C/1234567890
FEDWIRE021000021
│││          │
│││          └─ Party identifier (routing number)
││└─────────────── Account number
│└──────────────── Account line indicator
└───────────────── Field separator

§Field Components

  • Account Line Indicator: Optional qualifier for account type
  • Account Number: Institution’s account for settlement
  • Party Identifier: Alternative identification code or number

§Usage Context

Field 53B is used in:

  • MT103: Single Customer Credit Transfer (when BIC not available)
  • MT200: Financial Institution Transfer
  • MT202: General Financial Institution Transfer
  • MT202COV: Cover for customer credit transfer

§Business Applications

  • Non-SWIFT institutions: Identifying institutions without BIC codes
  • Domestic clearing: Using national clearing codes or bank numbers
  • Regional networks: Supporting regional payment network identifiers
  • Legacy systems: Interfacing with older identification schemes
  • Regulatory requirements: Meeting local identification standards

§Examples

:53B:FEDWIRE021000021
└─── US Federal Reserve routing number

:53B:/C/1234567890
UKSC123456
└─── UK Sort Code with checking account

:53B:/S/SETTLEMENT001234567890
CANCLEAR001234
└─── Canadian clearing number with settlement account

:53B:CHIPS0123
└─── CHIPS participant identifier

§Party Identifier Types

Common party identifier formats:

  • FEDWIRE: US Federal Reserve routing numbers (9 digits)
  • UKSC: UK Sort Codes (6 digits)
  • CANCLEAR: Canadian clearing numbers
  • CHIPS: Clearing House Interbank Payments System IDs
  • TARGET2: European TARGET2 participant codes
  • CNAPS: China National Advanced Payment System codes

§Account Line Indicators

Common indicators for correspondent accounts:

  • C: Correspondent account (checking)
  • D: Deposit account
  • S: Settlement account
  • N: Nostro account (our account with them)
  • V: Vostro account (their account with us)
  • L: Liquidity management account

§Validation Rules

  1. Party identifier: Cannot be empty, max 35 characters
  2. Account line indicator: If present, exactly 1 character
  3. Account number: If present, max 34 characters
  4. Character validation: All components must be printable ASCII
  5. Content requirement: Must contain meaningful identification

§Network Validated Rules (SWIFT Standards)

  • Party identifier cannot be empty (Error: T11)
  • Party identifier cannot exceed 35 characters (Error: T14)
  • Account line indicator must be single character (Error: T12)
  • Account number cannot exceed 34 characters (Error: T15)
  • Characters must be from SWIFT character set (Error: T61)
  • Field 53B alternative to 53A when BIC not available (Error: C53)

Fields§

§account_line_indicator: Option<String>

Account line indicator (optional, 1 character)

§account_number: Option<String>

Account number (optional, up to 34 characters)

§party_identifier: String

Party identifier (up to 35 characters)

Implementations§

Source§

impl Field53B

Source

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

Create a new Field53B with validation

Source

pub fn account_line_indicator(&self) -> Option<&str>

Get the account line indicator

Source

pub fn account_number(&self) -> Option<&str>

Get the account number

Source

pub fn party_identifier(&self) -> &str

Get the party identifier

Source

pub fn description(&self) -> String

Get human-readable description

Trait Implementations§

Source§

impl Clone for Field53B

Source§

fn clone(&self) -> Field53B

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 Field53B

Source§

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

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

impl<'de> Deserialize<'de> for Field53B

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 Field53B

Source§

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

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

impl PartialEq for Field53B

Source§

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

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 Field53B

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 Field53B

Source§

impl StructuralPartialEq for Field53B

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