pub enum GraphQLError {
OperationNotFound,
FragmentNotFound,
InfiniteFragmentRecursionError(String),
Parse(ParseError),
MultipleOperation,
AnonymousOperation,
}Expand description
§GraphQLError
Variants§
OperationNotFound
The target operation is not found in the Query
FragmentNotFound
A fragment used in the target operation is not found
InfiniteFragmentRecursionError(String)
A fragment contains itself or contains other fragments that cause a loop
Parse(ParseError)
GraphQL Parse error
MultipleOperation
A default operation cannot be chosen as the input contains multiple operations
AnonymousOperation
An operation always requires an operation name (not a limitation in GraphQL. Just a limitation in this library)
Trait Implementations§
Source§impl Debug for GraphQLError
impl Debug for GraphQLError
Source§impl Display for GraphQLError
impl Display for GraphQLError
Source§impl From<ParseError> for GraphQLError
impl From<ParseError> for GraphQLError
Source§fn from(err: ParseError) -> GraphQLError
fn from(err: ParseError) -> GraphQLError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphQLError
impl RefUnwindSafe for GraphQLError
impl Send for GraphQLError
impl Sync for GraphQLError
impl Unpin for GraphQLError
impl UnwindSafe for GraphQLError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more