Skip to content
Discussion options

You must be logged in to vote

You have to implement Deserialize manually for this. You'll probably want to call String::deserialize first, then attempt to parse that into an integer and if the parsing fails, return the string variant.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Chiffario
Comment options

@jplatte
Comment options

@mladedav
Comment options

@Chiffario
Comment options

Answer selected by Chiffario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants