How to understand the following struct definition?

Hi,

this is the case of “struct embedding”; this means that your struct contains all the field of the unit.Unit one.

Read here for more details