Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As @scovich points out, there are some data types such as Decimal or Binary where the Rust native type can express values that are not allowed in Variants
Describe the solution you'd like
It would be nice to ensure that the VariantBuilder could only produce valid Variant values
Describe alternatives you've considered
To do so we would probably have to add error checking to the builder functions like new_decimal 🤔
Additional context
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As @scovich points out, there are some data types such as
DecimalorBinarywhere the Rust native type can express values that are not allowed in VariantsDescribe the solution you'd like
It would be nice to ensure that the
VariantBuildercould only produce valid Variant valuesDescribe alternatives you've considered
To do so we would probably have to add error checking to the builder functions like
new_decimal🤔Additional context