Add custom name for `Other` variant by eadgbear · Pull Request #469 · graphql-rust/graphql-client
Addresses #446 and provides a way to specify the name of the fallback variant of the Query enum.
With serde_enum_fallback_variant_name=Some("Autre") you now get an enum like so:
pub enum AnEnum { where_ , self_ , Autre (String) }
Hi @slyons, thanks for the PR! I am going to take on maintainership of this crate a bit more actively again, do you still want to take this PR to the finish line? It looks good, I think we should do it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters