9 lines
157 B
Rust
9 lines
157 B
Rust
use serde_derive::Serialize;
|
|
|
|
use std::collections::HashMap;
|
|
|
|
#[derive(Serialize)]
|
|
struct Foo(u32, #[serde(flatten)] HashMap<String, String>);
|
|
|
|
fn main() {}
|