INNER CODE UNIT · Rust
Ok
graphql-rust/graphql-client · graphql_query_derive/src/lib.rs:85
if let Ok(deprecation_strategy) = attributes::extract_deprecation_strategy(input) {
options.set_deprecation_strategy(deprecation_strategy);
};
// The user can specify the normalization strategy.
if let Ok(normalization) = attributes::extract_normalization(input) {
options.set_normalization(normalization);
};
// The user can give a path to a module that provides definitions for the custom scalars.
if let Some(custom_scalars_module) = custom_scalars_module {
let custom_scalars_module = syn::parse_str(&custom_scalars_module)?;
options.set_custom_scalars_module(custom_scalars_module);
}
// The user can specify a list of enums types that are defined externally, rather than generated by this library
if let Some(extern_enums) = extern_enums {