You'll also want to carefully examine and clean any sensors, mirrors and lenses. As rain water often contains dirt and other contaminants. Which will leave a residue and affect picture quality.
My preference is to open up electronics which get wet and place them in front of a fan.
More info on what camera you have and just how wet it got might be helpful. Some cameras are more water resistant, and most electronics can handle a little bit of moisture. However, most electronics also can’t tolerate getting really wet and/or submerged.
I second the silica gel pack option. Put it in a bag with a handful of those and they will help pull the moisture out.
As long as current isn't applied while wet or they aren't wet long enough to corrode. They can often handle a lot more than one would think. Short circuits and corrosion are the real killers.
Case in point. I had an old motherboard not worth much. It was coated with a layer of tobacco tar from the previous owner. It was either the trash heap or clean it. Given it's value I didn't want to waste much time nor money on fancy contact cleaner. I soaked it liberally with 90% alcohol. Scrubbed it with a toothbrush. Then doused it with a garden hose to rinse it. Hit it with alcohol again to speed up drying. Let it sit around for a few weeks (mostly because I was busy). It was squeaky clean, odor free, corrosion free and works perfectly fine.
I've done the same with an old stereo preamp board covered in a layer of filth. Although that time I used distilled water.
Something like an image sensor I wouldn't do that nor a hard drive. Solid state electronics are fine though.