graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Add custom name for `Other` variant

Open eadgbear opened this issue 1 year ago • 0 comments

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

eadgbear avatar Dec 21 '23 23:12 eadgbear