Any holder or registered owner of bonds or coupons appertaining thereto, except to the extent the rights given in this chapter may be restricted by the ordinance or trust indenture authorizing or securing such bonds and coupons, may, either at law or in equity, by suit, action, mandamus, or other proceeding, protect and enforce any and all rights under the laws of the state or granted hereunder, or, to the extent permitted by law, under such ordinance or trust indenture authorizing or securing such bonds or under any agreement or other contract executed by the municipality pursuant to this chapter, and may enforce and compel the performance of all duties required by this chapter or by such ordinance or trust indenture to be performed by any municipality or by any officer thereof, including the fixing, charging, and collecting of rates, fees, and charges.