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

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

impl Clone for RenameAll[src]

impl Copy for RenameAll[src]

impl Debug for RenameAll[src]

impl FromMeta for RenameAll[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.