The derived Unmarshal impl for enums currently returns an error when none of the expected variants have been encountered.
The best would probably be an attribute that designates one enum variant as not a "normal" variant but one that is used for that default case.
The derived Unmarshal impl for enums currently returns an error when none of the expected variants have been encountered.
The best would probably be an attribute that designates one enum variant as not a "normal" variant but one that is used for that default case.