Skip to content

Commit e9bf67c

Browse files
committed
Make value_date in Field32A optional
Changed the type of value_date from NaiveDate to Option<NaiveDate> in the Field32A struct to allow for cases where the value date may be absent.
1 parent 9c76b1c commit e9bf67c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

swift-mt-message/src/fields/field32a.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use swift_mt_message_macros::SwiftField;
99
pub struct Field32A {
1010
/// Value date (YYMMDD)
1111
#[component("6!n", validate = ["date_format", "valid_date_range"])]
12-
pub value_date: NaiveDate,
12+
pub value_date: Option<NaiveDate>,
1313
/// Currency code (ISO 4217)
1414
#[component("3!a", validate = ["currency_code"])]
1515
pub currency: String,

0 commit comments

Comments
 (0)