Docs.rs
  • async-graphql-parser-6.0.1
    • async-graphql-parser 6.0.1
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • sunli829
    • Dependencies
      • async-graphql-value ^6.0.1 normal
      • pest ^2.5.5 normal
      • serde ^1.0.125 normal
      • serde_json ^1.0.64 normal
      • pest_generator ^2.6.0 dev
      • proc-macro2 ^1.0.37 dev
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • 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
logo

Crate async_graphql_parser

logo

Crate async_graphql_parser

  • Version 6.0.1
  • All Items
  • Modules
  • Structs
  • Enums
  • Functions
  • Type Definitions

Crates

  • async_graphql_parser
?
Change settings

Crate async_graphql_parser

source ·
Expand description

A parser for GraphQL. Used in the async-graphql crate.

It uses the pest crate to parse the input and then transforms it into Rust types.

Modules

  • types
    GraphQL types.

Structs

  • ErrorPositions
    An iterator over the positions inside an error.
  • Pos
    Original position of an element in source code.
  • Positioned
    An AST node that stores its original position.

Enums

  • Error
    Parser error.

Functions

  • parse_query
    Parse a GraphQL query document.
  • parse_schema
    Parse a GraphQL schema document.

Type Definitions

  • Result
    An alias for Result<T, Error>.

Results

struct field
async_graphql_parser::types::EnumValueDefinition::value
The value name.
struct field
async_graphql_parser::types::EnumType::values
The possible values of the enum.
enum variant
async_graphql_parser::types::DirectiveLocation::EnumValue
A value on an enum.
struct
async_graphql_parser::types::EnumValueDefinition
The definition of a value inside an enum.
struct
async_graphql_parser::types::InputValueDefinition
The definition of an input value inside the arguments of a …
method
async_graphql_parser::types::VariableDefinition::default_value
Get the default value of the variable; this is …
struct field
async_graphql_parser::types::VariableDefinition::default_value
The optional default value of the variable.
struct field
async_graphql_parser::types::InputValueDefinition::default_value
The default value of the argument, if there is one.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
method
async_graphql_parser::types::Field::get_argument
Get the value of the argument with the specified name.
method
async_graphql_parser::types::Directive::get_argument
Get the argument with the given name.