The impact of structure on elasticity, switchability, stability and functionality of an all-in-one carboxybetaine elastomer.