Struct Field77T

Source
pub struct Field77T {
    pub envelope_type: String,
    pub envelope_format: String,
    pub envelope_identifier: String,
}
Expand description

§Field 77T: Envelope Contents

§Overview

Field 77T contains envelope contents information in SWIFT MT103.REMIT messages, providing structured data about the remittance information envelope. This field is mandatory for MT103.REMIT messages and contains codes that identify the type and format of remittance information being transmitted. It supports the Extended Remittance Registration (ERR) framework for structured remittance data exchange.

§Format Specification

Format: 1!a1!a/35x

  • 1!a: Envelope type code (1 alphabetic character)
  • 1!a: Envelope format code (1 alphabetic character)
  • /: Separator
  • 35x: Envelope identifier (up to 35 characters)

§Structure

RD/REMITTANCE-2024-001234567890
││ │
││ └─ Envelope identifier (up to 35 chars)
│└─── Format code (D = Detailed)
└──── Type code (R = Remittance)

§Field Components

  • Envelope Type: Single character indicating envelope content type
  • Envelope Format: Single character indicating data format
  • Envelope Identifier: Unique identifier for the envelope contents

§Usage Context

Field 77T is used in:

  • MT103.REMIT: Single Customer Credit Transfer with Remittance (mandatory)

§Business Applications

  • Structured remittance: Supporting ISO 20022 remittance data
  • Extended remittance: Enabling detailed payment information
  • Regulatory compliance: Meeting remittance reporting requirements
  • Automated processing: Supporting straight-through remittance processing
  • Invoice matching: Facilitating automated accounts receivable processing

§Envelope Type Codes

§R - Remittance Information

  • Description: Contains structured remittance data
  • Usage: Standard remittance information envelope
  • Content: Invoice details, payment references, structured data

§S - Supplementary Information

  • Description: Additional supporting information
  • Usage: Supplementary data beyond basic remittance
  • Content: Extended commercial details, regulatory data

§T - Trade Information

  • Description: Trade finance related information
  • Usage: Trade settlement and documentary credit data
  • Content: LC references, trade documents, commercial terms

§Envelope Format Codes

§D - Detailed Format

  • Description: Comprehensive structured format
  • Usage: Full remittance data with all available fields
  • Content: Complete invoice and payment details

§S - Summary Format

  • Description: Condensed format with key information
  • Usage: Essential remittance data only
  • Content: Basic payment references and amounts

§C - Custom Format

  • Description: Institution-specific format
  • Usage: Proprietary or specialized data structures
  • Content: Custom remittance information layout

§Examples

:77T:RD/REMITTANCE-2024-001234567890
└─── Detailed remittance envelope

:77T:SS/SUPP-INFO-2024-03-15-001
└─── Summary supplementary information

:77T:TC/TRADE-LC-2024-567890123
└─── Custom trade information envelope

:77T:RD/INV-2024-001234-PAYMENT-REF
└─── Invoice-based remittance envelope

§Envelope Identifier Guidelines

  • Uniqueness: Should be unique within sender’s system
  • Traceability: Enable tracking and reconciliation
  • Format: Alphanumeric with limited special characters
  • Length: Maximum 35 characters
  • Content: Meaningful identifier for envelope contents

§Common Identifier Patterns

  • REMITTANCE-YYYY-NNNNNNNNNN: Standard remittance pattern
  • INV-YYYY-NNNNNN-REF: Invoice-based identifier
  • TRADE-LC-YYYY-NNNNNN: Trade finance identifier
  • SUPP-INFO-YYYY-MM-DD-NNN: Supplementary information pattern

§Validation Rules

  1. Envelope type: Must be single alphabetic character
  2. Envelope format: Must be single alphabetic character
  3. Separator: Must be forward slash (/)
  4. Identifier length: Maximum 35 characters
  5. Character set: SWIFT character set only
  6. Content validation: Identifier must be meaningful
  7. Uniqueness: Should be unique within context

§Network Validated Rules (SWIFT Standards)

  • Envelope type must be alphabetic (Error: T15)
  • Envelope format must be alphabetic (Error: T15)
  • Separator must be forward slash (Error: T77)
  • Identifier cannot exceed 35 characters (Error: T50)
  • Characters must be from SWIFT character set (Error: T61)
  • Field 77T mandatory in MT103.REMIT (Error: M77)
  • Field 77T not used in MT103 Core/STP (Error: C77)

Fields§

§envelope_type: String

Envelope type code (1 alphabetic character)

§envelope_format: String

Envelope format code (1 alphabetic character)

§envelope_identifier: String

Envelope identifier (up to 35 characters)

Implementations§

Source§

impl Field77T

Source

pub fn new( envelope_type: impl Into<String>, envelope_format: impl Into<String>, envelope_identifier: impl Into<String>, ) -> Result<Self>

Create a new Field77T with validation

§Arguments
  • envelope_type - Envelope type code (1 alphabetic character)
  • envelope_format - Envelope format code (1 alphabetic character)
  • envelope_identifier - Envelope identifier (up to 35 characters)
§Examples
use swift_mt_message::fields::Field77T;

// Detailed remittance envelope
let field = Field77T::new("R", "D", "REMITTANCE-2024-001234567890").unwrap();

// Summary supplementary information
let field = Field77T::new("S", "S", "SUPP-INFO-2024-03-15-001").unwrap();

// Custom trade information
let field = Field77T::new("T", "C", "TRADE-LC-2024-567890123").unwrap();
Source

pub fn envelope_type(&self) -> &str

Get the envelope type code

Source

pub fn envelope_format(&self) -> &str

Get the envelope format code

Source

pub fn envelope_identifier(&self) -> &str

Get the envelope identifier

Source

pub fn is_remittance_envelope(&self) -> bool

Check if this is a remittance information envelope

Source

pub fn is_supplementary_envelope(&self) -> bool

Check if this is a supplementary information envelope

Source

pub fn is_trade_envelope(&self) -> bool

Check if this is a trade information envelope

Source

pub fn is_detailed_format(&self) -> bool

Check if this uses detailed format

Source

pub fn is_summary_format(&self) -> bool

Check if this uses summary format

Source

pub fn is_custom_format(&self) -> bool

Check if this uses custom format

Source

pub fn description(&self) -> String

Get a description of the envelope type and format

Source

pub fn is_required_for_remit(&self) -> bool

Check if this field is required for MT103.REMIT

Source

pub fn is_allowed_in_core_stp(&self) -> bool

Check if this field is allowed in MT103 Core/STP

Trait Implementations§

Source§

impl Clone for Field77T

Source§

fn clone(&self) -> Field77T

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 Field77T

Source§

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

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

impl<'de> Deserialize<'de> for Field77T

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 Field77T

Source§

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

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

impl PartialEq for Field77T

Source§

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

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 Field77T

Source§

fn parse(value: &str) -> Result<Self, ParseError>

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 StructuralPartialEq for Field77T

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