Expand description
A derive macro for automatically generating the builder pattern
use bauer::Builder;
#[derive(Builder)]
pub struct Foo {
bar: u32,
}
let foo: Foo = Foo::builder()
.bar(42)
.build()
.unwrap();
assert_eq!(foo, Foo { bar: 42, });Derive Macrosยง
- Builder
- The main macro.