builder-pattern
builder-pattern copied to clipboard
A derivable macro for declaring a builder pattern.
I cannot get async_trait and builder-pattern to play nice together. My test (assume MyAsyncTrait exists): ``` #[derive(Builder)] pub struct MyStruct { a: SomeStructA, b_provider: Box, } ``` It complains that...
This adds quite a lot of functionality. The intended use case was a struct like this. It obviously has a problem because if you do not specify `update` or `specialized_initial`,...
Given a struct like this: ``` #[derive(Debug, Builder)] pub struct QueryParameters { pub table_name: String, #[default(Option::None)] pub index_name: Option, #[default(Option::None)] pub key_condition_expression: Option, pub expression_attribute_values: Vec, } ``` I would...
When the required fields are not properly provided, the compiler cannot deduce the `build` function. In that time, the compile error message would be like this: ``` no method named...
 All of the types included in the builder are Send and Sync - not really sure why it's auto impl'd !Send and !Sync.