Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add custom name for Other variant #469

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

slyons
Copy link

@slyons slyons commented Dec 21, 2023

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) 
}

@tomhoule
Copy link
Member

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants