serde_cast
Works nicely with
you_can
!
- Have structs
A
andB
- Make sure they derive
Serialize
andDeserialize
respectively - Cast!
use ;
use serde_cast;
let a = A ;
let b: B = serde_cast!;
assert_eq!;
Works nicely with
you_can
!
A
and B
Serialize
and Deserialize
respectivelyuse ;
use serde_cast;
let a = A ;
let b: B = serde_cast!;
assert_eq!;