pub enum GraphQLStringParsingError {
InvalidEscapeSequence(String),
UnterminatedString,
InvalidUnicodeEscape(String),
}Expand description
Error returned when parsing a GraphQL string value fails.
This error can occur during GraphQLTokenKind::parse_string_value() when
processing escape sequences.
Variants§
InvalidEscapeSequence(String)
An invalid escape sequence was encountered (e.g. \q).
UnterminatedString
The string was not properly terminated.
InvalidUnicodeEscape(String)
An invalid Unicode escape sequence was encountered (e.g. \u{ZZZZ}).
Trait Implementations§
Source§impl Clone for GraphQLStringParsingError
impl Clone for GraphQLStringParsingError
Source§fn clone(&self) -> GraphQLStringParsingError
fn clone(&self) -> GraphQLStringParsingError
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 GraphQLStringParsingError
impl Debug for GraphQLStringParsingError
Source§impl Display for GraphQLStringParsingError
impl Display for GraphQLStringParsingError
Source§impl Error for GraphQLStringParsingError
impl Error for GraphQLStringParsingError
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 From<GraphQLStringParsingError> for ValueParsingError
impl From<GraphQLStringParsingError> for ValueParsingError
Source§fn from(source: GraphQLStringParsingError) -> Self
fn from(source: GraphQLStringParsingError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for GraphQLStringParsingError
Auto Trait Implementations§
impl Freeze for GraphQLStringParsingError
impl RefUnwindSafe for GraphQLStringParsingError
impl Send for GraphQLStringParsingError
impl Sync for GraphQLStringParsingError
impl Unpin for GraphQLStringParsingError
impl UnwindSafe for GraphQLStringParsingError
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