13 lines
152 B
Rust
13 lines
152 B
Rust
use serde_derive::Deserialize;
|
|
|
|
#[derive(Deserialize)]
|
|
#[serde(field_identifier)]
|
|
enum F {
|
|
A,
|
|
#[serde(other)]
|
|
Other,
|
|
B,
|
|
}
|
|
|
|
fn main() {}
|