So, your startup.jl file is fine (in the future, please put your code between triple backticks (```) when posting to Discourse).
Wait, how/why are you trying to do this? You cannot normally define a struct within a function unless you use eval, and trying to call it normally within that same function will fail in the same way as you’ve experienced. Can you show what you’re doing, and briefly describe your end-goal?