You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently rename_all is pretty restrictive in what it allows. It would be nice if you could pass the name of a function and use that to rename the fields.
The function should have the signature
fnrename_field(&str) -> String
The specific use case is for tagged enums, where the tag in my case has a bit of preamble at the start of the string that is shared with all tags.
Currently
rename_all
is pretty restrictive in what it allows. It would be nice if you could pass the name of a function and use that to rename the fields.The function should have the signature
The specific use case is for tagged enums, where the tag in my case has a bit of preamble at the start of the string that is shared with all tags.
In this case it would be nice to have a function like this
The text was updated successfully, but these errors were encountered: