pub enum SchemaError {
TypeMissingName,
UnexpectedList,
UnexpectedNonNull,
WrappingTypeWithNoInner,
TooMuchWrapping,
IntrospectionQueryFailed,
}Expand description
An error that can occur when building the schema
Variants§
TypeMissingName
A type in the introspection output was missing a name
UnexpectedList
Found a list wrapper type in a position that should contain a named type
UnexpectedNonNull
Found a non-null wrapper type in a position that should contain a named type
WrappingTypeWithNoInner
Found a wrapping type that had no inner ofType
TooMuchWrapping
Found a wrapping type that was too nested
IntrospectionQueryFailed
The introspection query didn’t return results
Trait Implementations§
Source§impl Debug for SchemaError
impl Debug for SchemaError
Source§impl Display for SchemaError
impl Display for SchemaError
Source§impl Error for SchemaError
impl Error for SchemaError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for SchemaError
impl PartialEq for SchemaError
impl Eq for SchemaError
impl StructuralPartialEq for SchemaError
Auto Trait Implementations§
impl Freeze for SchemaError
impl RefUnwindSafe for SchemaError
impl Send for SchemaError
impl Sync for SchemaError
impl Unpin for SchemaError
impl UnwindSafe for SchemaError
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