pub trait Builder {
type Value;
// Required method
fn build(self) -> Self::Value;
}Expand description
Definer a builder for a given structure
The builder should be derived with #[derive(Builder)]
It will have the following properties:
- A new() function, with parameters for each non-optional field of the structure
- A method for each optional parameter to initialize that field. It returns self to allow chained calls