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§
fn input(&self) -> &Value
Sourcefn step_output(&self, step: &str) -> Option<&Value>
fn step_output(&self, step: &str) -> Option<&Value>
Some(Value::Null) for a skipped step, None if the step has not completed.
fn execution_field(&self, field: &str) -> Option<Value>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".