Are you asking about how to make enums and structs for use in your game project, or do you want to make a header file that is essentially a wrapper containing your enums and structs?
The .generated.h file is created automatically by the Unreal Build Tool when you build your project in Visual Studio.