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: Visibilitytarget struct visibility.
Trait Implementations
sourceimpl Clone for GraphQLClientDeriveOptions
impl Clone for GraphQLClientDeriveOptions
sourcefn clone(&self) -> GraphQLClientDeriveOptions
fn clone(&self) -> GraphQLClientDeriveOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for GraphQLClientDeriveOptions
impl !Send for GraphQLClientDeriveOptions
impl !Sync for GraphQLClientDeriveOptions
impl Unpin for GraphQLClientDeriveOptions
impl UnwindSafe for GraphQLClientDeriveOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more