The struct, record or union type '{0}' does not support structural equality because the type parameter {1} does not satisfy ...

The struct, record or union type '{0}' does not support structural equality because the type parameter {1} does not satisfy the 'equality' constraint. Consider adding the 'NoEquality' attribute to the type '{2}' to clarify that the type does not support structural equality