DeterminesOutputType with Structs

How can the DeterminesOutputType UFUNCTION flag be used with Structs? Say I have a function that returns a struct instance, but the type of the struct should be determined by some of the arguments for that function.