spin_factor_variables/
runtime_config.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use spin_expressions::Provider;

/// The runtime configuration for the variables factor.
#[derive(Default)]
pub struct RuntimeConfig {
    pub providers: Vec<Box<dyn Provider>>,
}

impl IntoIterator for RuntimeConfig {
    type Item = Box<dyn Provider>;
    type IntoIter = std::vec::IntoIter<Box<dyn Provider>>;

    fn into_iter(self) -> Self::IntoIter {
        self.providers.into_iter()
    }
}