macro_rules! questions {
( $($key:expr => $value:expr),* $(,)? ) => { ... };
}Expand description
Build an ordered map of named questions.
ยงExamples
use typesafe_rs::{questions, Question};
let qs = questions! {
"urgent" => Question::noul("Does this convey urgency?"),
"team" => Question::choice("Which team?")
.option("billing", "Payments")
.option("technical", "Bugs"),
};
assert_eq!(qs.len(), 2);