def _struct_has_defaults(self, struct):
return [<EOL>f for f in struct.all_fields<EOL>if f.has_default or is_nullable_type(f.data_type)<EOL>]<EOL>
Returns whether the given struct has any default values.