feat: add StructDefinition::add_attribute
and has_named_attribute
#5945
+137
−42
StructDefinition::add_attribute
and has_named_attribute
#5945