Closed WebFreak001 closed 2 years ago
Fix:
import mir.serde : serdeFallbackStruct;
@serdeFallbackStruct
struct Location
{
string uri;
}
BTW, find examples with @serdeProxy
in source code. That will simplify you example a lot.
do I need to put @serdeFallbackStruct
on all my structs?
A required UDA is depends on how do you group them inside the Variant.
BTW, why do you need your own algebraic template?
Or Std algebraic. Could you use Mir or something doesn't work for you?
Reproduction case: (I have SumType as custom type which defines serdeIgnoreOut)