Crate typed_builder
source ·Derive Macros
TypedBuilder
is not a real type - deriving it will generate a::builder()
method on your struct that will return a compile-time checked builder. Set the fields using setters with the same name as the struct’s fields and call.build()
when you are done to create your object.