I'm not sure what Stout is suggesting.
The way I do it is to bind weapon select 3 to the middle mouse button. Weapon 3 is your primary weapon, and the only one with a selectable fire rate as far as I know. So pressing weapon select 3 when you have weapon 3 already selected will toggle your fire rate.