Please change this comment to a comment and not an answer.
The reason it is not working is that you want to expose a struct using the UPROPERTY and to expose a complex type it must be a subclass of UObject. Also, dont use structs with functions. Just use a class.