Added
- New optional alternate
transform
syntax using a full fn, to allow support for custom lifetimes, generics and a where clause to custom builder method.
Example:
#[derive(TypedBuilder)]
struct Foo {
#[builder(
setter(
fn transform<'a, M>(value: impl IntoValue<'a, String, M>) -> String
where
M: std::fmt::Display
{
value.into_value()
},
)
)]
s: String,
}