A deuterated compound having structural formula I or a pharmaceutically acceptable salt thereof: Values and example values of the variable in formula (I) are disclosed herein. Also disclosed are the use of compounds of formula (I) in the methods of treating a disease selected from cancer, an autoimmune disease, and an infectious disease, and methods of enhancing an immune response to an antigen.