From just a user perspective of a single game, If I have the pass yards / rush yards for both offenses, the defense allowed data is just the inverse.
Cumulative data can be captured and then sliced as needed. Avg passing yards per game, Turnovers +/- data, etc.
There are already resources that do some of this but it is inconsistent at the HS level.