Struct cynic::GraphQlError
source · pub struct GraphQlError<Extensions = IgnoredAny> {
pub message: String,
pub locations: Option<Vec<GraphQlErrorLocation>>,
pub path: Option<Vec<GraphQlErrorPathSegment>>,
pub extensions: Option<Extensions>,
}
Expand description
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<Extensions>
Optional arbitrary extra data describing the error in more detail.
Implementations§
source§impl<ErrorExtensions> GraphQlError<ErrorExtensions>
impl<ErrorExtensions> GraphQlError<ErrorExtensions>
sourcepub fn new(
message: String,
locations: Option<Vec<GraphQlErrorLocation>>,
path: Option<Vec<GraphQlErrorPathSegment>>,
extensions: Option<ErrorExtensions>
) -> Self
pub fn new( message: String, locations: Option<Vec<GraphQlErrorLocation>>, path: Option<Vec<GraphQlErrorPathSegment>>, extensions: Option<ErrorExtensions> ) -> Self
Construct a new instance.
Trait Implementations§
source§impl<Extensions: Clone> Clone for GraphQlError<Extensions>
impl<Extensions: Clone> Clone for GraphQlError<Extensions>
source§fn clone(&self) -> GraphQlError<Extensions>
fn clone(&self) -> GraphQlError<Extensions>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Extensions: Debug> Debug for GraphQlError<Extensions>
impl<Extensions: Debug> Debug for GraphQlError<Extensions>
source§impl<'de, Extensions> Deserialize<'de> for GraphQlError<Extensions>where
Extensions: Deserialize<'de>,
impl<'de, Extensions> Deserialize<'de> for GraphQlError<Extensions>where
Extensions: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<Extensions> Display for GraphQlError<Extensions>
impl<Extensions> Display for GraphQlError<Extensions>
source§impl<Extensions> Error for GraphQlError<Extensions>
impl<Extensions> Error for GraphQlError<Extensions>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<Extensions: PartialEq> PartialEq for GraphQlError<Extensions>
impl<Extensions: PartialEq> PartialEq for GraphQlError<Extensions>
source§fn eq(&self, other: &GraphQlError<Extensions>) -> bool
fn eq(&self, other: &GraphQlError<Extensions>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Extensions: Eq> Eq for GraphQlError<Extensions>
impl<Extensions> StructuralPartialEq for GraphQlError<Extensions>
Auto Trait Implementations§
impl<Extensions> Freeze for GraphQlError<Extensions>where
Extensions: Freeze,
impl<Extensions> RefUnwindSafe for GraphQlError<Extensions>where
Extensions: RefUnwindSafe,
impl<Extensions> Send for GraphQlError<Extensions>where
Extensions: Send,
impl<Extensions> Sync for GraphQlError<Extensions>where
Extensions: Sync,
impl<Extensions> Unpin for GraphQlError<Extensions>where
Extensions: Unpin,
impl<Extensions> UnwindSafe for GraphQlError<Extensions>where
Extensions: UnwindSafe,
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