-
Hello, imagine this struct:
If I POST my JSON:
I would like to see it in DynamoDB as:
At the moment, I have to default always the value because:
And I end up with:
Is there any way to do that? Like an option to configure to declare to skip the None? Of course, I can do this:
But imagine a big struct. I just wish or would like to know if there is a way to instruct the SDK to skip None and have much less code around. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't think there is a great non-verbose solution for this right now since we haven't implemented any kind of high level DynamoDB library (see discussion on #70). In the meantime, I know of at least one library in crates.io that does this for you. Otherwise, you may be able to move the bulk of this conditional logic into a macro. |
Beta Was this translation helpful? Give feedback.
I don't think there is a great non-verbose solution for this right now since we haven't implemented any kind of high level DynamoDB library (see discussion on #70). In the meantime, I know of at least one library in crates.io that does this for you. Otherwise, you may be able to move the bulk of this conditional logic into a macro.