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 use this lib to have "duplicates" of my structs where each field is Optional for serde. I want use skip_serializing_none macro so that I don't have to repeat #[builder_field_attr(serde(skip_serializing_if = "Option::is_none"))] on every field. But this attribute has to be set before the derive to work.
The text was updated successfully, but these errors were encountered:
According to this comment, those attrs can't come before the derives without causing a compiler warning. It sounds like this would require another tweak to #[builder_struct_attr(...)] to work; probably another new attribute name.
I use this lib to have "duplicates" of my structs where each field is Optional for serde. I want use skip_serializing_none macro so that I don't have to repeat
#[builder_field_attr(serde(skip_serializing_if = "Option::is_none"))]
on every field. But this attribute has to be set before the derive to work.The text was updated successfully, but these errors were encountered: