bauer 0.3.1

A derive macro for automatically generating the builder pattern
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use bauer::Builder;

#[derive(Debug, Builder)]
#[builder(kind = "type-state")]
pub struct Foo {
    pub field_a: Option<String>,
    #[builder(repeat)]
    pub field_b: Vec<u32>,
}

fn main() {
    let x = FooBuilder::new().field_b(69).build();
    dbg!(x);
}