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