swift_mt_message/fields/field77t.rs
1use serde::{Deserialize, Serialize};
2use swift_mt_message_macros::SwiftField;
3
4/// # Field 77T: Envelope Contents
5/// Format: 1!a1!a35x (envelope type + format + identifier)
6/// Validation: reference_format
7#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, SwiftField)]
8pub struct Field77T {
9 /// Envelope type code (1!a format)
10 #[component("1!a", validate = ["reference_format"])]
11 pub envelope_type: String,
12 /// Envelope format code (1!a format)
13 #[component("1!a", validate = ["reference_format"])]
14 pub envelope_format: String,
15 /// Envelope identifier (35x format)
16 #[component("35x", validate = ["reference_format"])]
17 pub envelope_identifier: String,
18}