上QQ阅读APP看书,第一时间看更新
There's more...
If you want your object to be constructable without a builder, you could also provide Burger with a Default implementation. BurgerBuilder::new() could then just return Default::default().
In build(), if your configuration can inherently not be invalid, you can, of course, return the object directly without wrapping it in a Result.