The following code doesn't work, but I think it's clear what I want to do:
my.struct = 1;
foo.bar = my.struct;
So that
foo.bar.struct = 1
Basically I want to fill in the my structure array with a bunch of fields and values. Then I want to place that struct as a nested struct within foo.bar while retaining the field names.