pub enum JsonPathError {
PestError(Box<Error<Rule>>),
UnexpectedRuleLogicError(Rule, String),
UnexpectedNoneLogicError(String, String),
UnexpectedPestOutput,
NoRulePath,
NoJsonPathDescent,
NoJsonPathField,
InvalidNumber(String),
InvalidTopLevelRule(Rule),
EmptyInner(String),
InvalidJsonPath(String),
}
Expand description
This error type is used to represent errors that can occur during the parsing of JSONPath expressions.
Variants§
PestError(Box<Error<Rule>>)
UnexpectedRuleLogicError(Rule, String)
UnexpectedNoneLogicError(String, String)
UnexpectedPestOutput
NoRulePath
NoJsonPathDescent
NoJsonPathField
InvalidNumber(String)
InvalidTopLevelRule(Rule)
EmptyInner(String)
InvalidJsonPath(String)
Implementations§
Trait Implementations§
Source§impl Debug for JsonPathError
impl Debug for JsonPathError
Source§impl Display for JsonPathError
impl Display for JsonPathError
Source§impl Error for JsonPathError
impl Error for JsonPathError
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<&str> for JsonPathError
impl From<&str> for JsonPathError
Source§impl From<(JsonPathError, &str)> for JsonPathError
impl From<(JsonPathError, &str)> for JsonPathError
Source§fn from((err, val): (JsonPathError, &str)) -> Self
fn from((err, val): (JsonPathError, &str)) -> Self
Converts to this type from the input type.
Source§impl From<(ParseFloatError, &str)> for JsonPathError
impl From<(ParseFloatError, &str)> for JsonPathError
Source§fn from((err, val): (ParseFloatError, &str)) -> Self
fn from((err, val): (ParseFloatError, &str)) -> Self
Converts to this type from the input type.
Source§impl From<(ParseIntError, &str)> for JsonPathError
impl From<(ParseIntError, &str)> for JsonPathError
Source§fn from((err, val): (ParseIntError, &str)) -> Self
fn from((err, val): (ParseIntError, &str)) -> Self
Converts to this type from the input type.
Source§impl From<ParseBoolError> for JsonPathError
impl From<ParseBoolError> for JsonPathError
Source§fn from(err: ParseBoolError) -> Self
fn from(err: ParseBoolError) -> Self
Converts to this type from the input type.
Source§impl<T: Queryable> From<T> for JsonPathError
impl<T: Queryable> From<T> for JsonPathError
Source§impl PartialEq for JsonPathError
impl PartialEq for JsonPathError
impl StructuralPartialEq for JsonPathError
Auto Trait Implementations§
impl Freeze for JsonPathError
impl RefUnwindSafe for JsonPathError
impl Send for JsonPathError
impl Sync for JsonPathError
impl Unpin for JsonPathError
impl UnwindSafe for JsonPathError
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