pub enum GraphQLErrorNoteKind {
General,
Help,
Spec,
}Expand description
The kind of an error note (determines how the note is rendered).
Notes provide additional context beyond the primary error message. Different kinds are rendered with different prefixes in CLI output and may be handled differently by IDEs or other tools.
Variants§
General
General context or explanation about the error.
Rendered as = note: ... in CLI output.
Example: “Opening { here” (with span pointing to the opener)
Help
Actionable suggestion for fixing the error.
Rendered as = help: ... in CLI output.
Example: “Did you mean: userName: String?”
Spec
Reference to the GraphQL specification.
Rendered as = spec: ... in CLI output.
Example: “https://spec.graphql.org/September2025/#FieldDefinition”
Trait Implementations§
Source§impl Clone for GraphQLErrorNoteKind
impl Clone for GraphQLErrorNoteKind
Source§fn clone(&self) -> GraphQLErrorNoteKind
fn clone(&self) -> GraphQLErrorNoteKind
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 GraphQLErrorNoteKind
impl Debug for GraphQLErrorNoteKind
Source§impl PartialEq for GraphQLErrorNoteKind
impl PartialEq for GraphQLErrorNoteKind
impl Copy for GraphQLErrorNoteKind
impl Eq for GraphQLErrorNoteKind
impl StructuralPartialEq for GraphQLErrorNoteKind
Auto Trait Implementations§
impl Freeze for GraphQLErrorNoteKind
impl RefUnwindSafe for GraphQLErrorNoteKind
impl Send for GraphQLErrorNoteKind
impl Sync for GraphQLErrorNoteKind
impl Unpin for GraphQLErrorNoteKind
impl UnsafeUnpin for GraphQLErrorNoteKind
impl UnwindSafe for GraphQLErrorNoteKind
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