Struggle and Confusion damage are both typeless, so does that mean it can be hit by Shedinja?
Yes.
Wonder Guard does not protect against status moves (for instance, Tail Whip or Poison Powder) or against Struggle, and it does not prevent indirect damage such as from burn, poison, confusion, weather, recoil or entry hazards.
Source