A vaccine for coeliac disease would necessarily work in a different way to the vaccine for Covid-19 or for measles. Those are known as preventive vaccines, which produce a new immune response in the body. Once someone has had a preventive or prophylactic vaccine, their immune system knows how to generate a protective response when it encounters that antigen again.
A vaccine for coeliac disease would be a therapeutic vaccine, targeting an existing immune response. In the case of coeliac disease, the vaccine will have to reprogram the immune system to teach it not to react to the presence of gluten.