This question is about liquid fuelled engine structure. I can see there are many types of rocket fuels like RP-1, LH2, liquid methane, etc. So how do LH2 engines and RP-1 engines are different as in terms of structural design? I've tried to search all around the web but I couldn't find about it.
Welcome to the site.
With reference to RP1 to LH2 the there are several. LH2 is
roughly 1/10 to 1/12 the density of liquid fuels like aviation kerosine or RP1. So you have to pump more of it to get the same mass flow rate (bigger ducts). Pumps are normally described in "head rise." If the pump generates 100 atm of pressure in metric units you need to work out how high a fluid column would be to get that. LH2 density, being about a SG of 0.07 relative to water is over 16x that of say LO2. That means driving both pumps off a single turbine with
direct drive is normally impossible (you need some kind of gearing) and you need more stages. A 2 stage LO2 pump can get you 2000psi, you need maybe 4 to get LH2 up that high.
LH2 is also the
only common(ish) liquid that can be
compressed at these (relatively) low pressures (about 4% at these sorts of pressure IIRC), which absorbs pump power without raising system pressure. LH2 pumps are normally "axial flow" IE like a set of propeller blades on a shaft, rather than the in at the front, out at the side types, which tend to be easier to make and design (pretty much
every rocket pump has used this style of impeller)
As others have noted it is an
extreme cryogen. The LO2 tanks on the original Atlas (steel has 1/10 the thermal conductivity of Aluminium alloys) had
no insulation and just let the water vapour freeze out. An uninsulated LH2 tank would freeze out
Oxygen with consequent massive fire hazards.
In use LH2 needs to be kept liquid either by high pressure or high insulation. This means either
verythick foam layers or "Vacuum jacketed line" piping, a 2 layer pipe with a vacuum in the walls, which is expensive, a PITA to reduce heat leaks at joins and of course is destroyed by
any pinholes breaking the vacuum.
Or of course you could just wrap the whole engine in an evacuated box.

This is all much less of an issue for upper stage engines, that virtually start in a vacuum to begin with. However the residual heat in the engine ("heat" in this case means anything warmer than -253c) will flash boil the first fuel unless it's been pre chilled with circulating LH2 first.
The other thing is the mixture ratio (oxidizer mass divided by fuel mass) is
much different to LO2/HC fuels so the injectors are different too.
Interestingly the Aerojet LR87 has the unique distinction of running LO2/RP1 (for the Titan 1 missile) hypergols (NTO/Aerozine 50) and LH2. The first 2 used basically the same hardware structure, but the LH2 needed a new design turbopump. IOW sizes and flows for LO2/RP1 were
easily adaptable to hypergols, but LH2 needed a whole new piece of hardware.
Generally I suggest people read the NASA SP8000 series for all rocket engineering type stuff, available through NTRS. They may not be the most up to date papers, but they are driven by what has been done (more than you might realized) and what has been shown to
work.