idanarye / rust-typed-builder

Compile-time type-checked builder derive
https://crates.io/crates/typed-builder
Apache License 2.0
904 stars 52 forks source link

Hiding field from builder: use default value #132

Closed gauteh closed 9 months ago

gauteh commented 9 months ago

Hi,

is it possible to hide a field (that should always be constant or has internal use) from the builder that I do not want to be modifiable by the user?

Regards, Gaute

gauteh commented 9 months ago

Doh.. Just found it: #[builder(default, setter(skip))]