Struct jmespath::Context [] [src]

pub struct Context<'a> {
    pub expression: &'a str,
    pub runtime: &'a Runtime,
    pub offset: usize,
}

Context object used for error reporting.

The Context struct is mostly used when interacting between the interpreter and function implemenations. Unless you're writing custom JMESPath functions, this struct is an implementation detail.

Fields

Expression string that is being interpreted.

JMESPath runtime used to compile the expression and call functions.

Ast offset that is currently being evaluated.

Methods

impl<'a> Context<'a>
[src]

Create a new context struct.