Thank you so much @mbauman! I guess what I really needed was confirmation that this was the right approach. Looking at that post again, I decided to use AutoHashEquals.jl
and defined
using AutoHashEquals
@auto_hash_equals fields = (a,) struct MyType
a::Int
b::Int
end
And it’s working perfectly!