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,
}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
Implementations§
Source§impl GraphQLElementType
impl GraphQLElementType
pub fn is_keyword(&self) -> bool
Trait Implementations§
Source§impl Clone for GraphQLElementType
impl Clone for GraphQLElementType
Source§fn clone(&self) -> GraphQLElementType
fn clone(&self) -> GraphQLElementType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for GraphQLElementType
impl ElementType for GraphQLElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<GraphQLTokenType> for GraphQLElementType
impl From<GraphQLTokenType> for GraphQLElementType
Source§fn from(token: GraphQLTokenType) -> Self
fn from(token: GraphQLTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for GraphQLElementType
impl Hash for GraphQLElementType
Source§impl PartialEq for GraphQLElementType
impl PartialEq for GraphQLElementType
Source§impl Serialize for GraphQLElementType
impl Serialize for GraphQLElementType
impl Copy for GraphQLElementType
impl Eq for GraphQLElementType
impl StructuralPartialEq for GraphQLElementType
Auto Trait Implementations§
impl Freeze for GraphQLElementType
impl RefUnwindSafe for GraphQLElementType
impl Send for GraphQLElementType
impl Sync for GraphQLElementType
impl Unpin for GraphQLElementType
impl UnwindSafe for GraphQLElementType
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