Enum cynic_codegen::RenameAll [−][src]
pub enum RenameAll {
None,
Lowercase,
Uppercase,
PascalCase,
CamelCase,
SnakeCase,
ScreamingSnakeCase,
}Rules to rename all fields in an InputObject or variants in an Enum as GraphQL naming conventions usually don’t match rust
Variants
For names that are entirely lowercase in GraphQL: myfield
For names that are entirely uppercase in GraphQL: MYFIELD
For names that are entirely pascal case in GraphQL: MyField
For names that are entirely camel case in GraphQL: myField
For names that are entirely snake case in GraphQL: my_field
For names that are entirely snake case in GraphQL: MY_FIELD
Trait Implementations
impl FromMeta for RenameAll[src]
impl FromMeta for RenameAll[src]fn from_string(value: &str) -> Result<RenameAll, Error>[src]
pub fn from_nested_meta(item: &NestedMeta) -> Result<Self, Error>
pub fn from_meta(item: &Meta) -> Result<Self, Error>
pub fn from_word() -> Result<Self, Error>
pub fn from_list(items: &[NestedMeta]) -> Result<Self, Error>
pub fn from_value(value: &Lit) -> Result<Self, Error>
pub fn from_char(value: char) -> Result<Self, Error>
pub fn from_bool(value: bool) -> Result<Self, Error>
Auto Trait Implementations
impl RefUnwindSafe for RenameAll
impl RefUnwindSafe for RenameAllimpl UnwindSafe for RenameAll
impl UnwindSafe for RenameAll