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: StringMessage type of the original message (3 digits)
date: NaiveDateDate of the original message in YYMMDD format (6 digits)
session_number: StringSession number of the original message (4 digits)
input_sequence_number: StringInput Sequence Number of the original message (4 digits)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field11S
impl<'de> Deserialize<'de> for Field11S
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 SwiftField for Field11S
impl SwiftField for Field11S
Source§fn to_swift_string(&self) -> String
fn to_swift_string(&self) -> String
Convert field back to SWIFT string format
Source§fn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
Validate field according to SWIFT format rules
Source§fn format_spec() -> &'static str
fn format_spec() -> &'static str
Get field format specification
Source§fn sample_with_config(config: &FieldConfig) -> Self
fn sample_with_config(config: &FieldConfig) -> Self
Generate a random sample with configuration
impl StructuralPartialEq for Field11S
Auto Trait Implementations§
impl Freeze for Field11S
impl RefUnwindSafe for Field11S
impl Send for Field11S
impl Sync for Field11S
impl Unpin for Field11S
impl UnwindSafe for Field11S
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more