use derive_more_more::Extend; #[derive(Default, Extend)] #[extend(usize)] struct NamedMultiAttrStructField { #[extend(usize)] inner: Vec, test: bool, } #[derive(Default, Extend)] #[extend(usize)] struct NamedSingleAttrStructField { #[extend(usize)] inner: Vec, } #[derive(Default, Extend)] #[extend(usize)] struct UnnamedMultiAttrStructField(#[extend(usize)] Vec, bool); #[derive(Default, Extend)] #[extend(usize)] struct UnnamedSingleAttrStructField(#[extend(usize)] Vec); fn main() {}