10 lines
144 B
Rust
10 lines
144 B
Rust
use serde_derive::Serialize;
|
|
|
|
#[derive(Serialize)]
|
|
struct S {
|
|
#[serde(rename(serialize = "x", serialize = "y"))]
|
|
x: (),
|
|
}
|
|
|
|
fn main() {}
|