Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Bugfix/stringlistvalue (#160)
Browse files Browse the repository at this point in the history
* Default empty vector for optional fields

* User serde_default for the vector fields
  • Loading branch information
setoelkahfi authored Apr 25, 2023
1 parent 9b0c659 commit 89b8c01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sqs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ pub struct SqsMessageObj<T: Serialize> {
pub struct SqsMessageAttribute {
pub string_value: Option<String>,
pub binary_value: Option<Base64Data>,
#[serde(default)]
pub string_list_values: Vec<String>,
#[serde(default)]
pub binary_list_values: Vec<Base64Data>,
#[serde(default)]
pub data_type: Option<String>,
Expand Down

0 comments on commit 89b8c01

Please sign in to comment.