Docs.rs
  • graphql-toolkit-parser-0.2.0
    • graphql-toolkit-parser 0.2.0
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • LNSD
    • Dependencies
      • graphql-toolkit-ast ^0.2.0 normal
      • pest ^2.7.10 normal
      • serde ^1.0.203 normal
      • assert_matches ^1.5.0 dev
      • pest_generator ^2.7.10 dev
      • proc-macro2 ^1.0.85 dev
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate graphql_toolkit_parser

graphql_toolkit_parser0.2.0

  • All Items

Crate Items

  • Modules
  • Macros
  • Structs
  • Enums
  • Traits
  • Functions
  • Type Aliases

Crates

  • graphql_toolkit_parser

Crate graphql_toolkit_parser

Source
Expand description

A GraphQL document parser

Modules§

indexmap
IndexMap is a hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.

Macros§

value
Construct a ConstValue.

Structs§

ConstDirective
A const GraphQL directive, such as @deprecated(reason: "Use the other field). This differs from Directive in that it uses ConstValue instead of Value.
DeserializerError
This type represents errors that can occur when deserializing.
Directive
A GraphQL directive, such as @deprecated(reason: "Use the other field").
DirectiveDefinition
The definition of a directive in a service.
EnumType
The definition of an enum.
EnumValueDefinition
The definition of a value inside an enum.
ErrorPositions
An iterator over the positions inside an error.
ExecutableDocument
An executable GraphQL file or request string.
Field
A field being selected on an object, such as name or weightKilos: weight(unit: KILOGRAMS).
FieldDefinition
The definition of a field inside an object or interface.
FragmentDefinition
The definition of a fragment, such as fragment userFields on User { name age }.
FragmentSpread
A fragment selector, such as ... userFields.
InlineFragment
An inline fragment selector, such as ... on User { name }.
InputObjectType
The definition of an input object.
InputValueDefinition
The definition of an input value inside the arguments of a field.
InterfaceType
The definition of an interface type.
Name
A GraphQL name.
Number
Represents a JSON number, whether integer or floating point.
ObjectType
The definition of an object type.
OperationDefinition
A GraphQL operation, such as mutation($content:String!) { makePost(content: $content) { id } }.
OperationsIter
An iterator over the operations of a document.
Pos
Original position of an element in source code.
Positioned
An AST node that stores its original position.
SchemaDefinition
The definition of the schema in a GraphQL service.
SelectionSet
A set of fields to be selected, for example { name age }.
SerializerError
This type represents errors that can occur when serializing.
ServiceDocument
A GraphQL file or request string defining a GraphQL service.
Type
A GraphQL type, for example String or [String!]!.
TypeCondition
A type a fragment can apply to (on followed by the type).
TypeDefinition
The definition of a type in a GraphQL service.
UnionType
The definition of a union type.
VariableDefinition
A variable definition inside a list of variable definitions, for example $name:String!.
Variables
Variables of a query.

Enums§

BaseType
A GraphQL base type, for example String or [String!]. This does not include whether the type is nullable; for that see Type.
ConstValue
A resolved GraphQL value, for example 1 or "Hello World!".
DirectiveLocation
Where a directive can apply to.
DocumentOperations
The operations of a GraphQL document.
Error
Parser error.
OperationType
The type of an operation; query, mutation or subscription.
Selection
A part of an object to be selected; a single field, a fragment spread or an inline fragment.
TypeKind
A kind of type; scalar, object, enum, etc.
TypeSystemDefinition
A definition concerning the type system of a GraphQL service.
Value
A GraphQL value, for example 1, $name or "Hello World!". This is ConstValue with variables.

Traits§

AstPositionExt
Extension trait for adding position information to AST nodes.
IntoAst
A value-to-AST conversion trait that consumes the input value.

Functions§

from_value
Interpret a ConstValue as an instance of type T.
parse_query
Parse a GraphQL query document.
parse_schema
Parse a GraphQL schema document.
to_value
Convert a T into ConstValue which is an enum that can represent any valid GraphQL data.

Type Aliases§

Result
An alias for Result<T, Error>.

Results

Settings
Help

Type "InputFieldDefinition" not found. Showing results for closest type name "inputvaluedefinition" instead.

    enum variant
    graphql_toolkit_parser::DirectiveLocation::InputFieldDefinition
    An input value definition on an input object but not a …
    struct field
    graphql_toolkit_parser::InputValueDefinition::ty
    InputValueDefinition -> Positioned
    The type of the argument.
    struct field
    graphql_toolkit_parser::InputValueDefinition::name
    InputValueDefinition -> Positioned
    The name of the argument.
    struct field
    graphql_toolkit_parser::InputValueDefinition::directives
    InputValueDefinition -> Vec
    The directives of the input value.
    struct field
    graphql_toolkit_parser::InputValueDefinition::description
    InputValueDefinition -> Option
    The description of the argument.
    struct field
    graphql_toolkit_parser::InputValueDefinition::default_value
    InputValueDefinition -> Option
    The default value of the argument, if there is one.
    method
    graphql_toolkit_parser::InputValueDefinition::clone
    &InputValueDefinition -> InputValueDefinition
    method
    graphql_toolkit_parser::InputValueDefinition::fmt
    &InputValueDefinition, &mut Formatter -> Result<(), Error>
    method
    graphql_toolkit_parser::InputValueDefinition::clone
    &InputValueDefinition -> InputValueDefinition