Enum cynic_codegen::RenameAll[][src]

pub enum RenameAll {
    None,
    Lowercase,
    Uppercase,
    PascalCase,
    CamelCase,
    SnakeCase,
    ScreamingSnakeCase,
}
Expand description

Rules to rename all fields in an InputObject or variants in an Enum as GraphQL naming conventions usually don’t match rust

Variants

None
Lowercase

For names that are entirely lowercase in GraphQL: myfield

Uppercase

For names that are entirely uppercase in GraphQL: MYFIELD

PascalCase

For names that are entirely pascal case in GraphQL: MyField

CamelCase

For names that are entirely camel case in GraphQL: myField

SnakeCase

For names that are entirely snake case in GraphQL: my_field

ScreamingSnakeCase

For names that are entirely snake case in GraphQL: MY_FIELD

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Create an instance from a string literal in a value position.

Create an instance from a syn::Meta by dispatching to the format-appropriate trait function. This generally should not be overridden by implementers. Read more

Create an instance from the presence of the word in the attribute with no additional options specified. Read more

Create an instance from a list of nested meta items.

Create an instance from a literal value of either foo = "bar" or foo("bar"). This dispatches to the appropriate method based on the type of literal encountered, and generally should not be overridden by implementers. Read more

Create an instance from a char literal in a value position.

Create an instance from a bool literal in a value position.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.