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
Woudl be great if there was a way of annotating that a case in the destination variant doesn't exist in the source variant. Right now I'd get a no variant or associated item named "XXX" found for enum since it tries to convert to an equally named variant from the source if I leave it un-annotated/empty.
The text was updated successfully, but these errors were encountered:
What do you think about adding an annotation to unused cases to preserve the default behavior of mapping by name? Maybe we use the existing from_case syntax but setting the source case to _ has the effect of shipping it? For example:
Woudl be great if there was a way of annotating that a case in the destination variant doesn't exist in the source variant. Right now I'd get a
no variant or associated item named "XXX" found for enum
since it tries to convert to an equally named variant from the source if I leave it un-annotated/empty.The text was updated successfully, but these errors were encountered: