Serde tag = x, but keep the tag in the struct

后端 未结 0 1493
时光说笑
时光说笑 2020-12-12 04:11

I\'m trying to de-serialise JSON to a Rust struct with enum variants.

I want to store the tag of the variant inside the struct - currently serde stores this data in a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题