use buildstructor::buildstructor; pub struct Foo { simple: String, } #[buildstructor] impl Foo { #[builder(entry = "entry", exit = "exit")] fn new(simple: String) -> Foo { Self { simple } } } fn main() { let _ = Foo::entry().simple("3").exit(); }