In the 1960’s and 1970’s, electron beams were directed towards protons using the Stanford Linear Accelerator.
The effects of electrons striking neutrons at high energies are similar to those that occur when protons strike electrons at these energies. The electrons scatter the quarks within the particles. This is known as deep inelastic scattered: Deep Inelastic Scattering – Wikipedia
This was actually how quarks were discovered. SLAC SLAC National Accelerator Lab
Lower energies can cause electrons to scatter elastically from protons and neutrons, as they interact with the whole particles rather than any particular part of the internal structure.