[][src]Struct graphql_client_codegen::GraphQLClientDeriveOptions

pub struct GraphQLClientDeriveOptions {
    pub operation_name: Option<String>,
    pub struct_name: Option<String>,
    pub module_name: Option<String>,
    pub additional_derives: Option<String>,
    pub deprecation_strategy: Option<DeprecationStrategy>,
    pub module_visibility: Visibility,
}

Used to configure code generation.

Fields

operation_name: Option<String>

Name of the operation we want to generate code for. If it does not match, we use all queries.

struct_name: Option<String>

The name of implemention target struct.

module_name: Option<String>

The module that contains queries.

additional_derives: Option<String>

Comma-separated list of additional traits we want to derive.

deprecation_strategy: Option<DeprecationStrategy>

The deprecation strategy to adopt.

module_visibility: Visibility

target module visibility.

Trait Implementations

impl Clone for GraphQLClientDeriveOptions
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

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