INNER CODE UNIT · Rust
new
apollographql/apollo-rs · crates/apollo-smith/src/lib.rs:146
pub fn new(u: &'a mut Unstructured<'a>) -> Self {
Self {
u,
object_type_defs: Vec::new(),
interface_type_defs: Vec::new(),
enum_type_defs: Vec::new(),
schema_def: None,
directive_defs: Vec::new(),
operation_defs: Vec::new(),
fragment_defs: Vec::new(),
scalar_type_defs: Vec::new(),
union_type_defs: Vec::new(),
input_object_type_defs: Vec::new(),
implements_graph: implements_graph::ImplementsGraph::new(),
stack: Vec::new(),
chosen_arguments: IndexMap::new(),
used_type_names: HashSet::new(),
max_scalar_types: DEFAULT_MAX,