Okay, given that you know how to overload Base.-, it should be easy to write code to overwrite Base.sum.
But if you want sum to work automatically, you should write a method for iterate. If you were to count through the elements of MyStruct, would would that be a meaningful thing to do? In a mathematical sense. This is dependent on what MyStruct represents.