pub struct GraphQLValidationError {
pub message: String,
pub path: Option<Vec<String>>,
pub extensions: Option<ValidationErrorExtensions>,
}Expand description
A GraphQL error with extensions (validation details).
Fields§
§message: StringError message shown to client
path: Option<Vec<String>>Path to the field with error (e.g., “createUser.input.email”)
extensions: Option<ValidationErrorExtensions>Extensions with validation details
Trait Implementations§
Source§impl Clone for GraphQLValidationError
impl Clone for GraphQLValidationError
Source§fn clone(&self) -> GraphQLValidationError
fn clone(&self) -> GraphQLValidationError
Returns a duplicate 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 Debug for GraphQLValidationError
impl Debug for GraphQLValidationError
Source§impl<'de> Deserialize<'de> for GraphQLValidationError
impl<'de> Deserialize<'de> for GraphQLValidationError
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
Auto Trait Implementations§
impl Freeze for GraphQLValidationError
impl RefUnwindSafe for GraphQLValidationError
impl Send for GraphQLValidationError
impl Sync for GraphQLValidationError
impl Unpin for GraphQLValidationError
impl UnsafeUnpin for GraphQLValidationError
impl UnwindSafe for GraphQLValidationError
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