pub enum ASTKind {
Show 30 variants
Definition,
Document,
OperationDefinition,
OperationKind,
FragmentDefinition,
VariableDefinitions,
VariableDefinition,
Type,
NamedType,
ListType,
NonNullType,
Field,
FragmentSpread,
InlineFragment,
SelectionSet,
Selection,
Directives,
Directive,
Arguments,
Argument,
Object,
ObjectField,
Value,
Variable,
String,
Float,
Int,
Boolean,
Enum,
List,
}
Expand description
An enum of identifiers representing AST nodes.
This enum can be printed using the fmt::Display
trait.
When parsing this enum is used to indicate what AST node encountered a parsing error.
Variants§
Definition
Document
See: crate::ast::Document
OperationDefinition
OperationKind
FragmentDefinition
VariableDefinitions
VariableDefinition
Type
See: crate::ast::Type
NamedType
ListType
See: ListType
on crate::ast::Type
NonNullType
See: NonNullType
on crate::ast::Type
Field
See: crate::ast::Field
FragmentSpread
InlineFragment
SelectionSet
Selection
Directives
Directive
Arguments
Argument
See: crate::ast::Argument
Object
ObjectField
Value
See: crate::ast::Value
Variable
See: crate::ast::Variable
String
Float
Int
See: crate::ast::IntValue
Boolean
Enum
List
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ASTKind
impl RefUnwindSafe for ASTKind
impl Send for ASTKind
impl Sync for ASTKind
impl Unpin for ASTKind
impl UnwindSafe for ASTKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more