originates from the open-shell electronic structure of the system with half-filled d-orbitals when attached to a pair of electrodes. The rectification of the molecule is the result of the metal encapsulation that polarizes the MOs of the fullerene, like a molecular memristor. Finally, the switching stems from the conversion between the two most stable configurations of the endohedral metallofullerene, where the metal ion is near the polar region of the cage.