leaving them in the rain for a matter of hours isnt going to make a huge deal with the bud rot..
just shake them off like some one said, not too much tho dont want to damage buds or anything, be gentle now.
trim off the major stuff, chop it. hang it upside down, put some newspaper down (easy cleanup) and trim the rest.
maybe blow a fan on it as its drying to get the excess water off faster
good luck.