Note that I wrote structure and not internal structure and I did so intentionally. As far as we know elementary fermions - quarks and laptons - have no internal structure but - and I am totally not a physicist - there are the Higgs mechanism, the seesaw mechanism, selfinteraction due to vacuum polarization, and other things I have never heard of. As far as I know, this is still an area of active research with unresolved questions, but I think it is also generally believed among physicists that all mass has a dynamical origin.