Use a hash instead of a struct.