swift_mt_message/fields/
field13c.rs

1use serde::{Deserialize, Serialize};
2use swift_mt_message_macros::SwiftField;
3
4/// Field 13C: Time Indication
5///
6/// Time indication with code, time, and UTC offset.
7#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, SwiftField)]
8pub struct Field13C {
9    /// Time indication code with slashes
10    #[component("/8c/", validate = ["time_indication_code"])]
11    pub time_code: String,
12    /// Time (HHMM)
13    #[component("4!n", validate = ["time_format"])]
14    pub time: String,
15    /// UTC offset with sign
16    #[component("1!x4!n", validate = ["utc_offset_format"])]
17    pub utc_offset: String,
18}