2018-12-31 21:36:59 -05:00
|
|
|
use serde_derive::Serialize;
|
2017-04-09 11:11:27 -07:00
|
|
|
|
|
|
|
mod remote {
|
|
|
|
pub enum E {
|
2018-06-02 22:30:55 -07:00
|
|
|
A { a: u8 },
|
2017-04-09 11:11:27 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-02 22:19:39 -07:00
|
|
|
#[derive(Serialize)]
|
2017-04-09 11:11:27 -07:00
|
|
|
#[serde(remote = "remote::E")]
|
|
|
|
pub enum E {
|
|
|
|
A {
|
2018-06-02 21:11:42 -07:00
|
|
|
#[serde(getter = "get_a")]
|
2017-04-09 11:11:27 -07:00
|
|
|
a: u8,
|
2018-06-02 22:30:55 -07:00
|
|
|
},
|
2017-04-09 11:11:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|