pub struct GraphQLClientCodegenOptions {
    pub mode: CodegenMode,
    pub operation_name: Option<String>,
    pub struct_name: Option<String>,
    /* private fields */
}
Expand description

Used to configure code generation.

Fields§

§mode: CodegenMode

Which context is this code generation effort taking place.

§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 implementation target struct.

Implementations§

Creates an empty options object with default params. It probably wants to be configured.

A path to a file to include in the module to force Cargo to take into account changes in the query files when recompiling.

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

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

All the variable derives to be rendered.

Traits we want to derive for responses.

Additional traits we want to derive for responses.

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

The deprecation strategy to adopt.

Target module visibility.

The name of implementation target struct.

Name of the operation we want to generate code for. If none is selected, it means all operations.

A path to a file to include in the module to force Cargo to take into account changes in the schema files when recompiling.

A path to a file to include in the module to force Cargo to take into account changes in the query files when recompiling.

The identifier to use when referring to the struct implementing GraphQLQuery, if any.

The identifier to use when referring to the struct implementing GraphQLQuery, if any.

Set the normalization mode for the generated code.

The normalization mode for the generated code.

Get the custom scalar definitions module

Set the custom scalar definitions module

Get the externally defined enums type names

Set the externally defined enums type names

Set the graphql client codegen options’s fragments other variant.

Get a reference to the graphql client codegen options’s fragments other variant.

Set the graphql client codegen option’s skip none value.

Get a reference to the graphql client codegen option’s skip none value.

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