The line
// ... Other properties and functions specific to FMyStruct1
probably is the part where it fails. Structs & functions don’t mix well