Are they chrome, alloy or painted rims. If metal is missing, then a complete repair is probably out of the question.
However, I have had to do the following to one of my chrome rims and one of my alloys:
The rough edges can be lightly sanded and hopefully made to blend in a little, then a layer of clear coat can be put on to prevent further rusting or discoloration.
steviej