Trump charged under Espionage Act – which covers a lot more crimes than just spying
Spy cases are rare. More typically, as in the Trump indictment, the act applies to the unauthorized gathering, possessing or transmitting of certain sensitive government information.