Also, for complete clarity, does being attacked when I play Rest mean that I neither gain nor lose a card? Rest cancels out Attack, since I would have gained a card, but immediately lost it?
Yes, that's it. That's a more accurate way to explain it.