Closed ajtribick closed 2 years ago
This looks really great. It seems very straight forward to apply the same method to enums too if you change the call signature of extract_field_name
to take &[Attribute]
and return Option<String>
. Feel free to add to the changelog too, this is a very useful feature.
I see this also can be implemented for Fields::Unnamed
as we normally map integers as names there.
Any further changes needed here?
Looks great, thanks for the PR!
Initial implementation of the helper attribute to allow field renaming. Resolves #201