Struct jmespath::JmespathError
[−]
[src]
pub struct JmespathError { pub offset: usize, pub line: usize, pub column: usize, pub expression: String, pub reason: ErrorReason, }
JMESPath error.
Fields
offset: usize
Absolute character position.
line: usize
Line number of the coordinate.
column: usize
Column of the line number.
expression: String
Expression being evaluated.
reason: ErrorReason
Error reason information.
Methods
impl JmespathError
[src]
fn new(expr: &str, offset: usize, reason: ErrorReason) -> JmespathError
Create a new JMESPath Error.
fn from_ctx(ctx: &Context, reason: ErrorReason) -> JmespathError
Create a new JMESPath Error from a Context struct.
Trait Implementations
impl Clone for JmespathError
[src]
fn clone(&self) -> JmespathError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for JmespathError
[src]
impl PartialEq for JmespathError
[src]
fn eq(&self, __arg_0: &JmespathError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &JmespathError) -> bool
This method tests for !=
.