-
DynamoDB's How is one supposed to conditionally add key value pairs to the item HashMap? The builder's
Also there seem not way that you create a PutRequest from an existing HashMap. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Doh moment let mut put_request = PutRequest::builder()
.item("id".to_owned(), AttributeValue::S("foo"));
if let Some(value) = maybe_value {
put_request = put_request.item("value".to_owned(), AttributeValue::S(value));
} |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Doh moment