SchemaVisitor

Trait SchemaVisitor 

Source
pub trait SchemaVisitor<T = ()> {
Show 29 methods // Provided methods fn visit_schema_document( &self, document: &Document, _visitor_context: &mut T, ) { ... } fn enter_document(&self, _node: &Document, _visitor_context: &mut T) { ... } fn leave_document(&self, _node: &Document, _visitor_context: &mut T) { ... } fn enter_schema_definition( &self, _node: &SchemaDefinition, _visitor_context: &mut T, ) { ... } fn leave_schema_definition( &self, _node: &SchemaDefinition, _visitor_context: &mut T, ) { ... } fn enter_directive_definition( &self, _node: &DirectiveDefinition, _visitor_context: &mut T, ) { ... } fn leave_directive_definition( &self, _node: &DirectiveDefinition, _visitor_context: &mut T, ) { ... } fn enter_type_definition( &self, _node: &TypeDefinition, _visitor_context: &mut T, ) { ... } fn leave_type_definition( &self, _node: &TypeDefinition, _visitor_context: &mut T, ) { ... } fn enter_interface_type( &self, _node: &InterfaceType, _visitor_context: &mut T, ) { ... } fn leave_interface_type( &self, _node: &InterfaceType, _visitor_context: &mut T, ) { ... } fn enter_interface_type_field( &self, _node: &Field, _type_: &InterfaceType, _visitor_context: &mut T, ) { ... } fn leave_interface_type_field( &self, _node: &Field, _type_: &InterfaceType, _visitor_context: &mut T, ) { ... } fn enter_object_type(&self, _node: &ObjectType, _visitor_context: &mut T) { ... } fn leave_object_type(&self, _node: &ObjectType, _visitor_context: &mut T) { ... } fn enter_object_type_field( &self, _node: &Field, _type_: &ObjectType, _visitor_context: &mut T, ) { ... } fn leave_object_type_field( &self, _node: &Field, _type_: &ObjectType, _visitor_context: &mut T, ) { ... } fn enter_input_object_type( &self, _node: &InputObjectType, _visitor_context: &mut T, ) { ... } fn leave_input_object_type( &self, _node: &InputObjectType, _visitor_context: &mut T, ) { ... } fn enter_input_object_type_field( &self, _node: &InputValue, _input_type: &InputObjectType, _visitor_context: &mut T, ) { ... } fn leave_input_object_type_field( &self, _node: &InputValue, _input_type: &InputObjectType, _visitor_context: &mut T, ) { ... } fn enter_union_type(&self, _node: &UnionType, _visitor_context: &mut T) { ... } fn leave_union_type(&self, _node: &UnionType, _visitor_context: &mut T) { ... } fn enter_scalar_type(&self, _node: &ScalarType, _visitor_context: &mut T) { ... } fn leave_scalar_type(&self, _node: &ScalarType, _visitor_context: &mut T) { ... } fn enter_enum_type(&self, _node: &EnumType, _visitor_context: &mut T) { ... } fn leave_enum_type(&self, _node: &EnumType, _visitor_context: &mut T) { ... } fn enter_enum_value( &self, _node: &EnumValue, _enum: &EnumType, _visitor_context: &mut T, ) { ... } fn leave_enum_value( &self, _node: &EnumValue, _enum: &EnumType, _visitor_context: &mut T, ) { ... }
}
Expand description

A trait for implenenting a visitor for GraphQL schema definition.

Provided Methods§

Source

fn visit_schema_document(&self, document: &Document, _visitor_context: &mut T)

Source

fn enter_document(&self, _node: &Document, _visitor_context: &mut T)

Source

fn leave_document(&self, _node: &Document, _visitor_context: &mut T)

Source

fn enter_schema_definition( &self, _node: &SchemaDefinition, _visitor_context: &mut T, )

Source

fn leave_schema_definition( &self, _node: &SchemaDefinition, _visitor_context: &mut T, )

Source

fn enter_directive_definition( &self, _node: &DirectiveDefinition, _visitor_context: &mut T, )

Source

fn leave_directive_definition( &self, _node: &DirectiveDefinition, _visitor_context: &mut T, )

Source

fn enter_type_definition( &self, _node: &TypeDefinition, _visitor_context: &mut T, )

Source

fn leave_type_definition( &self, _node: &TypeDefinition, _visitor_context: &mut T, )

Source

fn enter_interface_type(&self, _node: &InterfaceType, _visitor_context: &mut T)

Source

fn leave_interface_type(&self, _node: &InterfaceType, _visitor_context: &mut T)

Source

fn enter_interface_type_field( &self, _node: &Field, _type_: &InterfaceType, _visitor_context: &mut T, )

Source

fn leave_interface_type_field( &self, _node: &Field, _type_: &InterfaceType, _visitor_context: &mut T, )

Source

fn enter_object_type(&self, _node: &ObjectType, _visitor_context: &mut T)

Source

fn leave_object_type(&self, _node: &ObjectType, _visitor_context: &mut T)

Source

fn enter_object_type_field( &self, _node: &Field, _type_: &ObjectType, _visitor_context: &mut T, )

Source

fn leave_object_type_field( &self, _node: &Field, _type_: &ObjectType, _visitor_context: &mut T, )

Source

fn enter_input_object_type( &self, _node: &InputObjectType, _visitor_context: &mut T, )

Source

fn leave_input_object_type( &self, _node: &InputObjectType, _visitor_context: &mut T, )

Source

fn enter_input_object_type_field( &self, _node: &InputValue, _input_type: &InputObjectType, _visitor_context: &mut T, )

Source

fn leave_input_object_type_field( &self, _node: &InputValue, _input_type: &InputObjectType, _visitor_context: &mut T, )

Source

fn enter_union_type(&self, _node: &UnionType, _visitor_context: &mut T)

Source

fn leave_union_type(&self, _node: &UnionType, _visitor_context: &mut T)

Source

fn enter_scalar_type(&self, _node: &ScalarType, _visitor_context: &mut T)

Source

fn leave_scalar_type(&self, _node: &ScalarType, _visitor_context: &mut T)

Source

fn enter_enum_type(&self, _node: &EnumType, _visitor_context: &mut T)

Source

fn leave_enum_type(&self, _node: &EnumType, _visitor_context: &mut T)

Source

fn enter_enum_value( &self, _node: &EnumValue, _enum: &EnumType, _visitor_context: &mut T, )

Source

fn leave_enum_value( &self, _node: &EnumValue, _enum: &EnumType, _visitor_context: &mut T, )

Implementors§