bauer 0.4.0

A derive macro for automatically generating the builder pattern
Documentation
1
2
3
4
5
6
7
8
9
10
#[derive(Debug, bauer::Builder)]
struct Foo {
    #[builder(into, default)]
    field: String,
}

fn main() {
    let x: Foo = Foo::builder().field("hello").build();
    assert_eq!(x.field, "hello");
}