Self-healing mechanism of metallopolymers investigated by QM/MM simulations and Raman spectroscopy.