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