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,
}
Expand description

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 struct visibility.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.