Skip to main content

Scope

Trait Scope 

Source
pub trait Scope {
    // Required methods
    fn input(&self) -> &Value;
    fn step_output(&self, step: &str) -> Option<&Value>;
    fn execution_field(&self, field: &str) -> Option<Value>;

    // Provided method
    fn local(&self, _name: &str) -> Option<&Value> { ... }
}
Expand description

Data an expression can read at runtime.

Required Methods§

Source

fn input(&self) -> &Value

Source

fn step_output(&self, step: &str) -> Option<&Value>

Some(Value::Null) for a skipped step, None if the step has not completed.

Source

fn execution_field(&self, field: &str) -> Option<Value>

Provided Methods§

Source

fn local(&self, _name: &str) -> Option<&Value>

The value of a loop variable, if one is bound.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§