macro_rules! params {
() => { ... };
($($key:expr => $value:expr),+ $(,)?) => { ... };
}Expand description
Builds a Parameters map from a list of "name" => value pairs.
Each value is passed through Into::<Param>::into, so Rust literals
("text", 42i64, true) become Param::Literal automatically.
For references, templates, arrays, and maps, use the constructors on
Param directly.
use panopticon_core::prelude::*;
let mut pipe = Pipeline::default();
pipe.var("workspace_id", "ws-001")?;
pipe.step::<SetVar>(
"configure",
params!(
"name" => "workspace",
"value" => Param::reference("workspace_id"),
),
)?;