mod other { use typesafe_builders::prelude::*; #[derive(Builder)] pub struct Struct { #[builder(decay)] #[builder(constructor)] pub x: Option, #[builder(decay)] #[builder(constructor)] pub y: Option>, } } fn main() { let s = other::Struct::builder(3, 4.into()).build(); assert_eq!(s.x, Some(3)); assert_eq!(s.y, Some(Box::new(4))); }