useoutput_macros::Output;#[derive(Output)]structSimpleOutput{first:usize,
second: String,
}fnmain(){// Create builder (auto-generated by #[derive(Output)])
letmut builder =SimpleOutput::new();dbg!(builder.get_first());// Empty (None)
builder.first(2);// Set to Some(2)
dbg!(builder.get_first());// Full (Some(2))
dbg!(builder.get_second());// Empty (None)
builder.second(String::from("It works!!"));// Set to Some("It works!!")
dbg!(builder.get_second());// Full (Some("It works!!"))
}