Structure theorems for rings under certain coactions of a Hopf algebra