Skip to content

Commit f40cfa1

Browse files
committed
fix: make SqsEvent other field optional in builder
1 parent 6afee4e commit f40cfa1

File tree

1 file changed

+1
-0
lines changed
  • lambda-events/src/event/sqs

1 file changed

+1
-0
lines changed

lambda-events/src/event/sqs/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub struct SqsEvent {
1919
/// If `catch-all-fields` is disabled, any additional fields that are present will be ignored.
2020
#[cfg(feature = "catch-all-fields")]
2121
#[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))]
22+
#[cfg_attr(feature = "builders", builder(default))]
2223
#[serde(flatten)]
2324
pub other: serde_json::Map<String, Value>,
2425
}

0 commit comments

Comments
 (0)