When compiling this struct in my 4.20 project the exact combination that worked was this:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "HitInformation")
TEnumAsByte<ETraceTypeQuery> TraceType;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "HitInformation")
TEnumAsByte<EDrawDebugTrace::Type> DrawType;
Both those enumerations needed to be declared as TEnumAsByte but EDrawDebugTrace is declared differently. Make sure you are including Kismet/KismetSystemLibrary.h.