#[builder]
Expand description
Derive the builder pattern for a struct.
A struct builder enforces required fields to be specified and allows optional arguments to be specified post-construction.
This is done by defining a “params” struct that the builder depends on to be initialized. This struct defines all the fields
in the original struct that don’t have the “Option” type. Once the builder is initialized with the params, both required and optional fields
can be updated by calling builder methods (using the identifiers with_<field>
).