You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add builders to all types generated by prost-build.
All fields are optional, but Prost will generate a Vec instead of an Option<Vec>.
So it would be useful to do #[builder(on(Vec, default))], so those fields are optional too.
Makes sense, we should definitely have smth like this. The type pattern for Vec is Vec<_>, so it should be #[builder(on(Vec<_>, default))]. The default attribute in this position can only be a boolean switch and nothing more until #152
Activity
Veetaha commentedon Feb 10, 2026
Makes sense, we should definitely have smth like this. The type pattern for
VecisVec<_>, so it should be#[builder(on(Vec<_>, default))]. Thedefaultattribute in this position can only be a boolean switch and nothing more until #152