Creates a serializer for non-canonical envelopes whose payload doesn't fit the {value} shape — e.g. failure branches that carry a structured SerializedError. The envelope still carries the @functype marker and _tag discriminator.
{value}
SerializedError
@functype
_tag
The @functype type marker.
The variant discriminator.
The payload fields (merged after marker + tag).
Creates a serializer for non-canonical envelopes whose payload doesn't fit the
{value}shape — e.g. failure branches that carry a structuredSerializedError. The envelope still carries the@functypemarker and_tagdiscriminator.