Module :: former
Former - variation of builder pattern.
Sample
use Former;
let struct1 = former
.int_1
.string_1
.vec_1.replace.end
.hashmap_strings_1.insert.insert.end
.string_optional_1
.form;
dbg!;
// < &struct1 = Structure1 {
// < int_1: 13,
// < string_1: "Abcd",
// < vec_1: [
// < 1,
// < 3,
// < ],
// < hashmap_strings_1: {
// < "k1": "v1",
// < "k2": "v2",
// < },
// < int_optional_1: None,
// < string_optional_1: Some(
// < "dir1",
// < ),
// < }
To add to your project
Try out from the repository