[−][src]Struct cynic::GraphQLError
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]
message: String,
locations: Option<Vec<GraphQLErrorLocation>>,
path: Option<Vec<GraphQLErrorPathSegment>>,
extensions: Option<Value>
) -> Self
Construct a new instance.
Trait Implementations
impl Clone for GraphQLError
[src]
fn clone(&self) -> GraphQLError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GraphQLError
[src]
impl<'de> Deserialize<'de> for GraphQLError
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for GraphQLError
[src]
impl Eq for GraphQLError
[src]
impl Error for GraphQLError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl PartialEq<GraphQLError> for GraphQLError
[src]
fn eq(&self, other: &GraphQLError) -> bool
[src]
fn ne(&self, other: &GraphQLError) -> bool
[src]
impl StructuralEq for GraphQLError
[src]
impl StructuralPartialEq for GraphQLError
[src]
Auto Trait Implementations
impl RefUnwindSafe for GraphQLError
impl Send for GraphQLError
impl Sync for GraphQLError
impl Unpin for GraphQLError
impl UnwindSafe for GraphQLError
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T, U> FlattenInto<U> for T where
U: FlattenFrom<T>,
[src]
U: FlattenFrom<T>,
fn flatten_into(Self) -> U
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,