Skip to content
New issue

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

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

Already on GitHub? Sign in 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) 
}

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

Successfully merging this pull request may close these issues.

None yet

1 participant