@Andrew, when generating C++ code from a Simulink model, you can control how the elements of bus signals are named in the generated code. This includes naming the structure elements according to the outport names.
Below is the example where i named the inputs to the bus as inporting1 and inporting respectively and in the code genration you can see the variables names are same as the name given in the model.