1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use msgpack_schema::*;
mod serialize {
use super::*;
#[derive(Serialize)]
struct S1 {
#[tag = 0]
x: String,
#[tag = 0]
y: String,
}
#[derive(Serialize)]
enum E1 {
#[tag = 0]
V1,
#[tag = 0]
V2,
}
}
mod deserialize {
use super::*;
#[derive(Deserialize)]
struct S1 {
#[tag = 0]
x: String,
#[tag = 0]
y: String,
}
#[derive(Deserialize)]
enum E1 {
#[tag = 0]
V1,
#[tag = 0]
V2,
}
}
fn main() {}