mirror of
https://github.com/serde-rs/serde.git
synced 2025-09-28 21:41:24 +00:00
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() {}
|