Struct already gives you a definition of `==` that would work here (e.g. it returns true if all attributes are equal).