pub enum InputCoercionError {
SuspectedValidationBug(SuspectedValidationBug),
ValueError {
message: String,
location: Option<NodeLocation>,
},
}
Variants§
SuspectedValidationBug(SuspectedValidationBug)
ValueError
Implementations§
source§impl InputCoercionError
impl InputCoercionError
sourcepub fn into_graphql_error(self, sources: &SourceMap) -> GraphQLError
pub fn into_graphql_error(self, sources: &SourceMap) -> GraphQLError
Convert into a JSON-serializable error as represented in a GraphQL response
sourcepub fn into_response(self, sources: &SourceMap) -> Response
pub fn into_response(self, sources: &SourceMap) -> Response
Convert into a response with this error as a request error that prevented execution from starting.
Trait Implementations§
source§impl Clone for InputCoercionError
impl Clone for InputCoercionError
source§fn clone(&self) -> InputCoercionError
fn clone(&self) -> InputCoercionError
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 Debug for InputCoercionError
impl Debug for InputCoercionError
source§impl From<SuspectedValidationBug> for InputCoercionError
impl From<SuspectedValidationBug> for InputCoercionError
source§fn from(value: SuspectedValidationBug) -> Self
fn from(value: SuspectedValidationBug) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InputCoercionError
impl RefUnwindSafe for InputCoercionError
impl Send for InputCoercionError
impl Sync for InputCoercionError
impl Unpin for InputCoercionError
impl UnwindSafe for InputCoercionError
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