pub struct GraphqlError {
pub message: String,
pub locations: Vec<GraphqlLocation>,
pub path: Vec<GraphqlPathSegment>,
pub extensions: Option<Value>,
}Expand description
A GraphQL execution or validation error, not an HTTP failure.
Fields§
§message: StringHuman-readable error message.
locations: Vec<GraphqlLocation>Source positions, when supplied by the server.
path: Vec<GraphqlPathSegment>Response path, when supplied by the server.
extensions: Option<Value>Implementation-specific error metadata.
Trait Implementations§
Source§impl Clone for GraphqlError
impl Clone for GraphqlError
Source§impl Debug for GraphqlError
impl Debug for GraphqlError
Source§impl<'de> Deserialize<'de> for GraphqlError
impl<'de> Deserialize<'de> for GraphqlError
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
impl Eq for GraphqlError
Source§impl PartialEq for GraphqlError
impl PartialEq for GraphqlError
Source§impl Serialize for GraphqlError
impl Serialize for GraphqlError
impl StructuralPartialEq for GraphqlError
Auto Trait Implementations§
impl Freeze for GraphqlError
impl RefUnwindSafe for GraphqlError
impl Send for GraphqlError
impl Sync for GraphqlError
impl Unpin for GraphqlError
impl UnsafeUnpin for GraphqlError
impl UnwindSafe for GraphqlError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.