Struct Field11S

Source
pub struct Field11S {
    pub message_type: String,
    pub date: NaiveDate,
    pub session_number: String,
    pub input_sequence_number: String,
}
Expand description

§Field 11S: MT and Date of the Original Message

For Cancellation and Request for Payment messages, this field contains the message type and date of the original message that is being cancelled or referenced.

Format: 3!n6!n4!n4!n

  • Message Type (3 digits): The original message type (e.g., 103, 202)
  • Date (6 digits): YYMMDD format
  • Session Number (4 digits): Session of original message
  • Input Sequence Number (4 digits): ISN of original message

Note: The format may include an optional slash (/) before the input sequence number, but this is handled by the parser which strips it out before processing.

§Usage

  • MT192: Request for Cancellation (Customer Transfer)
  • MT292: Request for Cancellation (Financial Institution Transfer)
  • References original message for processing

§Validation

  • Message type must be valid 3-digit MT number
  • Date must be valid YYMMDD format within acceptable range
  • Session and ISN must be 4-digit numbers

Example: 103231215001/0123 (MT103 dated 2023-12-15, session 0001, ISN 0123)

Fields§

§message_type: String

Message type of the original message (3 digits)

§date: NaiveDate

Date of the original message in YYMMDD format (6 digits)

§session_number: String

Session number of the original message (4 digits)

§input_sequence_number: String

Input Sequence Number of the original message (4 digits)

Implementations§

Source§

impl Field11S

Source

pub fn from_raw(content: &str) -> Result<Self, ParseError>

Parse from raw string content

Trait Implementations§

Source§

impl Clone for Field11S

Source§

fn clone(&self) -> Field11S

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 Field11S

Source§

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

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

impl<'de> Deserialize<'de> for Field11S

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 Field11S

Source§

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

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

impl PartialEq for Field11S

Source§

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

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 Field11S

Source§

fn parse(value: &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§

fn sample() -> Self

Generate a random sample of this field
Source§

fn sample_with_config(config: &FieldConfig) -> Self

Generate a random sample with configuration
Source§

impl StructuralPartialEq for Field11S

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,