Well you can, just not in the struct - instead when using the struct.
Use node Make Bitmask, select it, and in details pick the desired enum to use.
Make Bitmask