swift_mt_message/fields/
field61.rs1use chrono::NaiveDate;
2use serde::{Deserialize, Serialize};
3use swift_mt_message_macros::SwiftField;
4
5#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, SwiftField)]
9pub struct Field61 {
10 #[component("6!n", validate = ["date_format", "valid_date_range"])]
12 pub value_date: NaiveDate,
13
14 #[component("4!n", optional, validate = ["date_format"])]
16 pub entry_date: Option<String>,
17
18 #[component("2a", validate = ["debit_credit_indicator"])]
20 pub debit_credit_mark: String,
21
22 #[component("1!a", optional)]
24 pub funds_code: Option<char>,
25
26 #[component("15d", validate = ["amount_format"])]
28 pub amount: f64,
29
30 #[component("4!a", validate = ["reference_format"])]
32 pub transaction_type: String,
33
34 #[component("2!a", validate = ["reference_format"])]
36 pub customer_reference: String,
37
38 #[component("16x", optional, validate = ["reference_format"])]
40 pub bank_reference: Option<String>,
41
42 #[component("34x", optional, validate = ["reference_format"])]
44 pub supplementary_details: Option<String>,
45}