Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 20
How does #[serde(tag = "type")] change enum serialization?
A
It serializes as an internally tagged object, e.g. {"type":"Click","x":1}
B
It wraps in an array
C
It removes the variant name
D
It serializes as a number