You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far so good, this fits the adjacently tagged enum representation.
The wrinkle is that for some commands the arguments field may be optional. I tried modelling this as
Hi!
I need to de/serialize JSON messages such as the following:
So far so good, this fits the adjacently tagged enum representation.
The wrinkle is that for some commands the
arguments
field may be optional. I tried modelling this asbut Serde is not liking it and complains about "missing field `arguments`".
Any suggestions? (besides custom serialization)
The text was updated successfully, but these errors were encountered: