Fix missing `pub` in struct generator

Prevents using `is_loaded` with the struct generator