graphql-rust / graphql-client

Typed, correct GraphQL requests and responses in Rust
Apache License 2.0
1.14k stars 157 forks source link

Add custom name for `Other` variant #469

Open slyons opened 9 months ago

slyons commented 9 months ago

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