Atomically pick a string_value value if not provided. #2125
Replies: 4 comments
-
I think it's a good idea to have! However this is no small task, because once we are doing this, we'd at least want to support serde like attributes, e.g. |
Beta Was this translation helpful? Give feedback.
-
@tyt2y3 This sounds like fun work. I'll try and see if I can create a PR :) Unless @wyatt-herkamp wants to do it, ofcourse |
Beta Was this translation helpful? Give feedback.
-
Feel free to work on it!. I have been busy with school and trying to fix bugs in Rust Analyzer. If you need help feel free to reach out. |
Beta Was this translation helpful? Give feedback.
-
@wyatt-herkamp The change has now been merged and should be available in the next release. |
Beta Was this translation helpful? Give feedback.
-
Take the following enum. I think we should automatically use the Variant name if the string_value is not provided.
This would allow people to do
And get the same result. I would be happy to make a PR if the developers of the project is Ok with this feature.
Beta Was this translation helpful? Give feedback.
All reactions