use ibuilder::nodes::Node; use ibuilder::*; #[derive(IBuilder)] pub struct Foo { bar: i32, } fn main() { let mut builder: Builder = Foo::builder(); let _: Options = builder.get_options(); let _: Result, ChooseError> = builder.choose(Input::text("foo")); let _: Result, ChooseError> = builder.choose(Input::choice("foo")); let _: Result = builder.finalize(); let _: bool = builder.is_done(); let _: Node = builder.to_node(); }