我有一个枚举定义为: enum Foo { Bar { x: i32, y: i32 }, ... // many more variants } 给定一个JSON字符串 {"x": 5, "y": 7} ,我将如何显式反序列化为 Foo::Bar {x: ...
確定! 回上一頁