2018-12-31 21:36:59 -05:00
|
|
|
use serde_derive::Serialize;
|
2016-09-28 09:55:54 -07:00
|
|
|
|
2018-06-02 22:19:39 -07:00
|
|
|
#[derive(Serialize)]
|
2016-09-28 09:55:54 -07:00
|
|
|
struct S {
|
2018-06-02 22:30:55 -07:00
|
|
|
#[serde(rename(serialize = "x"), rename(serialize = "y"))]
|
2016-09-28 09:55:54 -07:00
|
|
|
x: (),
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|