[][src]Struct cynic::GraphQLError

pub struct GraphQLError {
    pub message: String,
    pub locations: Option<Vec<GraphQLErrorLocation>>,
    pub path: Option<Vec<GraphQLErrorPathSegment>>,
    pub extensions: Option<Value>,
}

A model describing an error which has taken place during execution.

Fields

message: String

A description of the error which has taken place.

locations: Option<Vec<GraphQLErrorLocation>>

Optional description of the locations where the errors have taken place.

path: Option<Vec<GraphQLErrorPathSegment>>

Optional path to the response field which experienced the associated error.

extensions: Option<Value>

Optional arbitrary JSON data describing the error in more detail.

Implementations

impl GraphQLError[src]

pub fn new(
    message: String,
    locations: Option<Vec<GraphQLErrorLocation>>,
    path: Option<Vec<GraphQLErrorPathSegment>>,
    extensions: Option<Value>
) -> Self
[src]

Construct a new instance.

Trait Implementations

impl Clone for GraphQLError[src]

impl Debug for GraphQLError[src]

impl<'de> Deserialize<'de> for GraphQLError[src]

impl Display for GraphQLError[src]

impl Eq for GraphQLError[src]

impl Error for GraphQLError[src]

impl PartialEq<GraphQLError> for GraphQLError[src]

impl StructuralEq for GraphQLError[src]

impl StructuralPartialEq for GraphQLError[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T, U> FlattenInto<U> for T where
    U: FlattenFrom<T>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.