Closed ericlagergren closed 1 year ago
Hi @ericlagergren, this seems like a somewhat niche use-case so I'm not sure it's a good fit for strum. Most people would likely use an attribute to change how a variant is serialized.
thanks for considering it!
I have an enum like this:
The discriminant is four UTF-8 bytes. It would be nice to have an option to generate
AsRef<str>
using the discriminant interpreted as UTF-8 instead of using the type name.