2019-11-26 02:00:05 -06:00
|
|
|
use serde::{Deserialize, Serialize};
|
2019-10-31 13:32:06 -05:00
|
|
|
|
2019-11-03 06:08:39 -06:00
|
|
|
#[derive(Serialize, Deserialize)]
|
2019-10-31 13:32:06 -05:00
|
|
|
enum DeEnum<B, C, D> {
|
|
|
|
Unit,
|
|
|
|
Seq(i8, B, C, D),
|
|
|
|
Map { a: i8, b: B, c: C, d: D },
|
|
|
|
|
|
|
|
// Make sure we can support more than one variant.
|
|
|
|
_Unit2,
|
|
|
|
_Seq2(i8, B, C, D),
|
|
|
|
_Map2 { a: i8, b: B, c: C, d: D },
|
|
|
|
}
|