2018-12-31 20:36:59 -06:00
|
|
|
use serde_derive::Serialize;
|
2017-08-07 19:22:26 -05:00
|
|
|
|
2018-06-03 00:19:39 -05:00
|
|
|
#[derive(Serialize)]
|
2017-08-07 19:22:26 -05:00
|
|
|
enum Enum {
|
|
|
|
#[serde(serialize_with = "serialize_some_other_variant")]
|
|
|
|
Struct {
|
|
|
|
#[serde(skip_serializing)]
|
|
|
|
f1: String,
|
|
|
|
f2: u8,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2018-06-03 00:30:55 -05:00
|
|
|
fn main() {}
|