strum
strum copied to clipboard
Implement a `suffix` attribute for serialization of enum variants
This PR implements a suffix attribute for serializing enums via Display and AsRefStr. Much of the logic was borrowed (lifted) from the implementation of the prefix attribute since the implementation mechanism is fundamentally similar.
This PR also adds corresponding tests and documentation of the new feature, in addition to further tests of the prefix attribute to clarify behavior.
fixes #392