Skip to main content

VariableProvider

Trait VariableProvider 

Source
pub trait VariableProvider {
    // Required method
    fn get_variable(&self, name: &str) -> Option<&JsonValue>;
}
Expand description

Trait for providing variable values during evaluation.

This abstraction allows the evaluation functions to work with different variable storage mechanisms (HashMap, async state, etc.).

Required Methods§

Source

fn get_variable(&self, name: &str) -> Option<&JsonValue>

Get a variable value by name.

Implementations on Foreign Types§

Source§

impl VariableProvider for HashMap<String, Value>

Simple HashMap-based variable provider.

Source§

fn get_variable(&self, name: &str) -> Option<&JsonValue>

Implementors§