pub enum GraphQLElementType {
Show 44 variants
StringLiteral,
IntLiteral,
FloatLiteral,
BooleanLiteral,
NullLiteral,
Name,
QueryKeyword,
MutationKeyword,
SubscriptionKeyword,
FragmentKeyword,
OnKeyword,
TypeKeyword,
InterfaceKeyword,
UnionKeyword,
ScalarKeyword,
EnumKeyword,
InputKeyword,
ExtendKeyword,
SchemaKeyword,
DirectiveKeyword,
ImplementsKeyword,
RepeatsKeyword,
Spread,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
Comma,
Colon,
Semicolon,
Pipe,
Ampersand,
Equals,
Exclamation,
At,
Dollar,
Whitespace,
Comment,
SourceFile,
Newline,
Eof,
Error,
}Expand description
Element types for GraphQL.
Variants§
StringLiteral
A string literal.
IntLiteral
An integer literal.
FloatLiteral
A float literal.
BooleanLiteral
A boolean literal.
NullLiteral
A null literal.
Name
A name (identifier).
QueryKeyword
The query keyword.
MutationKeyword
The mutation keyword.
SubscriptionKeyword
The subscription keyword.
FragmentKeyword
The fragment keyword.
OnKeyword
The on keyword.
TypeKeyword
The type keyword.
InterfaceKeyword
The interface keyword.
UnionKeyword
The union keyword.
ScalarKeyword
The scalar keyword.
EnumKeyword
The enum keyword.
InputKeyword
The input keyword.
ExtendKeyword
The extend keyword.
SchemaKeyword
The schema keyword.
DirectiveKeyword
The directive keyword.
ImplementsKeyword
The implements keyword.
RepeatsKeyword
The repeatable keyword.
Spread
The spread operator ....
LeftParen
Left parenthesis (.
RightParen
Right parenthesis ).
LeftBracket
Left bracket [.
RightBracket
Right bracket ].
LeftBrace
Left brace {.
RightBrace
Right brace }.
Comma
Comma ,.
Colon
Colon :.
Semicolon
Semicolon ;.
Pipe
Pipe |.
Ampersand
Ampersand &.
Equals
Equals =.
Exclamation
Exclamation !.
At
At symbol @.
Dollar
Dollar sign $.
Whitespace
Whitespace.
Comment
A comment.
SourceFile
The root source file.
Newline
A newline.
Eof
End of file.
Error
An error element.
Implementations§
Source§impl GraphQLElementType
impl GraphQLElementType
Sourcepub fn is_keyword(&self) -> bool
pub fn is_keyword(&self) -> bool
Returns true if the element type is a keyword.
Trait Implementations§
Source§impl Clone for GraphQLElementType
impl Clone for GraphQLElementType
Source§fn clone(&self) -> GraphQLElementType
fn clone(&self) -> GraphQLElementType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GraphQLElementType
Source§impl Debug for GraphQLElementType
impl Debug for GraphQLElementType
Source§impl<'de> Deserialize<'de> for GraphQLElementType
impl<'de> Deserialize<'de> for GraphQLElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl ElementType for GraphQLElementType
impl ElementType for GraphQLElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
impl Eq for GraphQLElementType
Source§impl From<GraphQLTokenType> for GraphQLElementType
impl From<GraphQLTokenType> for GraphQLElementType
Source§fn from(token: GraphQLTokenType) -> Self
fn from(token: GraphQLTokenType) -> Self
Source§impl Hash for GraphQLElementType
impl Hash for GraphQLElementType
Source§impl PartialEq for GraphQLElementType
impl PartialEq for GraphQLElementType
Source§fn eq(&self, other: &GraphQLElementType) -> bool
fn eq(&self, other: &GraphQLElementType) -> bool
self and other values to be equal, and is used by ==.