[][src]Enum async_graphql::QueryError

pub enum QueryError {
    NotSupported,
    ExpectedInputType {
        expect: String,
        actual: Value,
    },
    ParseInputValue {
        reason: String,
    },
    FieldNotFound {
        field_name: String,
        object: String,
    },
    MissingOperation,
    UnknownOperationNamed {
        name: String,
    },
    MustHaveSubFields {
        object: String,
    },
    NotConfiguredMutations,
    NotConfiguredSubscriptions,
    InvalidEnumValue {
        ty: String,
        value: String,
    },
    RequiredField {
        field_name: String,
        object: &'static str,
    },
    VarNotDefined {
        var_name: String,
    },
    RequiredDirectiveArgs {
        directive: &'static str,
        arg_name: &'static str,
        arg_type: &'static str,
    },
    UnknownDirective {
        name: String,
    },
    UnknownFragment {
        name: String,
    },
    TooComplex,
    TooDeep,
    FieldError {
        err: String,
        extended_error: Option<Value>,
    },
    EntityNotFound,
    TypeNameNotExists,
}

An error processing a GraphQL query.

Variants

NotSupported

The feature is not supported.

ExpectedInputType

The actual input type did not match the expected input type.

Fields of ExpectedInputType

expect: String

The expected input type.

actual: Value

The actual input type.

ParseInputValue

Parsing of an input value failed.

Fields of ParseInputValue

reason: String

The reason for the failure to resolve.

FieldNotFound

A field was not found on an object type.

Fields of FieldNotFound

field_name: String

Field name

object: String

Object name

MissingOperation

An operation was missing from the query.

UnknownOperationNamed

The operation name was unknown.

Fields of UnknownOperationNamed

name: String

Operation name for query.

MustHaveSubFields

The user attempted to query an object without selecting any subfields.

Fields of MustHaveSubFields

object: String

Object name

NotConfiguredMutations

The schema does not have mutations.

NotConfiguredSubscriptions

The schema does not have subscriptions.

InvalidEnumValue

The value does not exist in the enum.

Fields of InvalidEnumValue

ty: String

Enum type name

value: String

Enum value

RequiredField

A required field in an input object was not present.

Fields of RequiredField

field_name: String

Field name

object: &'static str

Object name

VarNotDefined

A variable is used but not defined.

Fields of VarNotDefined

var_name: String

Variable name

RequiredDirectiveArgs

A directive was required but not provided.

Fields of RequiredDirectiveArgs

directive: &'static str

Directive name

arg_name: &'static str

Argument name

arg_type: &'static str

Argument type

UnknownDirective

An unknown directive name was encountered.

Fields of UnknownDirective

name: String

Directive name

UnknownFragment

An unknown fragment was encountered.

Fields of UnknownFragment

name: String

Fragment name

TooComplex

The query was too complex.

TooDeep

The query was nested too deep.

FieldError

A field handler errored.

Fields of FieldError

err: String

The error description.

extended_error: Option<Value>

Extensions to the error provided through the ErrorExtensions or ResultExt traits.

EntityNotFound

Entity not found.

TypeNameNotExists

"__typename" must be an existing string.

Implementations

impl QueryError[src]

pub fn into_error(self, pos: Pos) -> Error[src]

Convert this error to a regular Error type.

Trait Implementations

impl Debug for QueryError[src]

impl Display for QueryError[src]

impl Error for QueryError[src]

impl PartialEq<QueryError> for QueryError[src]

impl StructuralPartialEq for QueryError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,