Yet Another Rust Builder Pattern Derive Macro
Usage
let foo = builder
.a
.b
.c
.d
.build;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
Note
The macro requires that fields implement the Default. When a value for the field is not provided it will assign the default value:
let foo = builder
.build;
assert_eq!;
assert_eq!;
Declaring fields that do not implement the Default trait will result in a compile error: