Struct cynic::GraphQlError[][src]

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<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized
[src]

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

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

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