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

The struct, record or union type '{0}' does not support structural equality because the type '{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