Skip to content

Trouble using #[skip_serializing_none] #59

Answered by jonasbb
Warfields asked this question in Q&A
Discussion options

You must be logged in to vote

You cannot use a macro, without importing it first. In your code above, that is missing.
If you change

-use serde_with;
+use serde_with::skip_serializing_none;

or you change

-#[skip_serializing_none]
+#[serde_with::skip_serializing_none]

then it compiles.

Do you have any other problems with the code expect from getting it to compile?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jonasbb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #59 on December 16, 2020 20:15.