pub enum ValueParsingError {
String(GraphQLStringParsingError),
Int(String),
Float(String),
}Expand description
Errors that occur when parsing literal values.
These errors occur when converting raw token text to semantic values.
For example, parsing the integer 9999999999999999999999 overflows i32.
Variants§
String(GraphQLStringParsingError)
Invalid string literal (bad escape sequence, unterminated, etc.).
Int(String)
Invalid integer literal (overflow, invalid format).
GraphQL integers must fit in a signed 32-bit integer (i32).
Float(String)
Invalid float literal (infinity, NaN, invalid format).
GraphQL floats must be finite f64 values.
Trait Implementations§
Source§impl Clone for ValueParsingError
impl Clone for ValueParsingError
Source§fn clone(&self) -> ValueParsingError
fn clone(&self) -> ValueParsingError
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 ValueParsingError
impl Debug for ValueParsingError
Source§impl Display for ValueParsingError
impl Display for ValueParsingError
Source§impl Error for ValueParsingError
impl Error for ValueParsingError
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.
Source§impl PartialEq for ValueParsingError
impl PartialEq for ValueParsingError
impl StructuralPartialEq for ValueParsingError
Auto Trait Implementations§
impl Freeze for ValueParsingError
impl RefUnwindSafe for ValueParsingError
impl Send for ValueParsingError
impl Sync for ValueParsingError
impl Unpin for ValueParsingError
impl UnwindSafe for ValueParsingError
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