Where is the correct place to create a variable with has a defined structure

It all depends on the desired scope of the variable or structure (struct).

A variable declared "before setup()" or outside of any function is visible to the whole program. Global scope.

A variable declared inside setup() or any function is only visible to that function. Local scope.