1 use serde_derive::Deserialize; 2 3 #[derive(Deserialize)] 4 #[serde(field_identifier, variant_identifier)] 5 enum F { 6 A, 7 B, 8 } 9 main()10fn main() {} 11
1 use serde_derive::Deserialize; 2 3 #[derive(Deserialize)] 4 #[serde(field_identifier, variant_identifier)] 5 enum F { 6 A, 7 B, 8 } 9 main()10fn main() {} 11