Created
July 24, 2016 22:55
-
-
Save erincandescent/982a5cee0d36b213611b0c3f1a5a7dbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(custom_derive, plugin)] | |
#![plugin(serde_macros)] | |
extern crate serde; | |
extern crate serde_json; | |
#[derive(Serialize, Deserialize)] | |
struct S1 { | |
a: Test, | |
b: Test | |
} | |
#[derive(Serialize, Deserialize)] | |
enum Test { | |
V1(Box<S1>), | |
V2, | |
V3 | |
} |
Author
erincandescent
commented
Jul 24, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment