pub enum JSONPathError {
InvalidEscape,
NoLeadingSlash,
}
Variants§
InvalidEscape
An invalid escape sequence was encountered, either a ~
escape or a
%
escape.
NoLeadingSlash
An error caused by not having a leading slash on the JSON pointer.
For example, the string a/b/c
is not a valid JSON pointer, while
/a/b/c
is.
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
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<JSONPathError> for PredicateContextError
impl From<JSONPathError> for PredicateContextError
Source§fn from(source: JSONPathError) -> Self
fn from(source: JSONPathError) -> Self
Converts to this type from the input type.
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