pub struct GraphQLTokenError {
pub message: String,
pub error_notes: SmallVec<[GraphQLErrorNote; 2]>,
}Expand description
The payload of a GraphQLTokenKind::Error variant.
Separated into its own struct so it can be heap-allocated behind a Box,
keeping the GraphQLTokenKind enum small. See the performance note on
GraphQLTokenKind::Error for details.
Fields§
§message: StringA human-readable error message.
error_notes: SmallVec<[GraphQLErrorNote; 2]>Optional notes providing additional context or suggestions.
Trait Implementations§
Source§impl Clone for GraphQLTokenError
impl Clone for GraphQLTokenError
Source§fn clone(&self) -> GraphQLTokenError
fn clone(&self) -> GraphQLTokenError
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 GraphQLTokenError
impl Debug for GraphQLTokenError
Source§impl PartialEq for GraphQLTokenError
impl PartialEq for GraphQLTokenError
impl StructuralPartialEq for GraphQLTokenError
Auto Trait Implementations§
impl Freeze for GraphQLTokenError
impl RefUnwindSafe for GraphQLTokenError
impl Send for GraphQLTokenError
impl Sync for GraphQLTokenError
impl Unpin for GraphQLTokenError
impl UnsafeUnpin for GraphQLTokenError
impl UnwindSafe for GraphQLTokenError
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