[−][src]Enum async_graphql_parser::Error
pub enum Error { Syntax { message: String, start: Pos, end: Option<Pos>, }, MultipleRoots { root: OperationType, schema: Pos, pos: Pos, }, MissingQueryRoot { pos: Pos, }, MultipleOperations { anonymous: Pos, operation: Pos, }, OperationDuplicated { operation: Name, first: Pos, second: Pos, }, FragmentDuplicated { fragment: Name, first: Pos, second: Pos, }, MissingOperation, }
Parser error.
Variants (Non-exhaustive)
A syntax error occurred.
Fields of Syntax
The schema contained multiple query, mutation or subscription roots.
Fields of MultipleRoots
root: OperationType
The type of root that was duplicated.
schema: Pos
The position of the schema.
pos: Pos
The position of the second root.
The schema contained no query root.
Fields of MissingQueryRoot
pos: Pos
The position of the schema.
Multiple operations were found in a document with an anonymous one.
Fields of MultipleOperations
An operation is defined multiple times in a document.
Fields of OperationDuplicated
A fragment is defined multiple times in a document.
Fields of FragmentDuplicated
The document does not contain any operation.
Implementations
impl Error
[src][−]
pub fn positions(&self) -> ErrorPositionsⓘNotable traits for ErrorPositions
impl Iterator for ErrorPositions type Item = Pos;
[src][−]
Notable traits for ErrorPositions
impl Iterator for ErrorPositions type Item = Pos;
Get an iterator over the positions of the error.
The iterator is ordered from most important to least important position.
Trait Implementations
impl Clone for Error
[src][+]
impl Debug for Error
[src][+]
impl Display for Error
[src][+]
impl Eq for Error
[src]
impl Error for Error
[src][+]
impl<R: RuleType> From<Error<R>> for Error
[src][+]
impl PartialEq<Error> for Error
[src][+]
impl StructuralEq for Error
[src]
impl StructuralPartialEq for Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,