Charge is only the most familiar of the properties that are inverted between a particle and its antiparticle, but it's not the only one. So you should not consider "same mass and opposite electric charge" to be a definition of what an antiparticle is; it's merely a plain-English explanation.
A list of properties in which particles and antiparticles differ can be found on the Wikipedia page for flavor. In particular, they include
- Each of the six quark flavor quantum numbers (upness, downness, strangeness, charmness, bottomness, topness)
- Isospin, which is like a combination of upness and downness
- Baryon number, which is like a combination of all six quark flavor numbers
- Each of the three lepton flavor quantum numbers (electron number, muon number, tau number)
- Lepton number, which is like a combination of all three lepton flavors
- Weak isospin
- Electric charge
- Hypercharge, which is like a combination of weak isospin and electric charge
- Parity
- Chirality... sort of (let's just say that one's complicated)
As I've mentioned, some of these are just combinations of others, so you couldn't make a complete list of all the quantum numbers in which particles and their antiparticles differ, but you could list all the "fundamental" ones (the basis of the vector space of quantum number operators). I'm not sure I got them all here, but I can't think of any others off the top of my head.