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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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,
Dan
Beta Was this translation helpful? Give feedback.
All reactions