use elicitor_wizard_requestty::RequesttyBackend;
use example_surveys::JobApplication;
fn main() -> anyhow::Result<()> {
let backend = RequesttyBackend::new();
let result = JobApplication::builder()
.suggest_name("Jane Doe".to_string())
.suggest_email("jane@example.com".to_string())
.suggest_timezone(-5) .suggest_relocate(false)
.suggest_experience(|exp| exp.company("Previous Corp").months(30).remote(true))
.suggest_salary(|sal| sal.base(120).bonus(20))
.suggest_position(|pos| pos.suggest_senior())
.suggest_work_style(|ws| ws.suggest_remote())
.suggest_referral(|r| {
r.suggest_linked_in()
.conference(|c| c.name("RustConf").year(2025))
})
.run(backend)?;
println!("{result:#?}");
Ok(())
}