Trouble instantiating new struct

Well, I’ve got it working by removing the constructor from inside the struct definition, and then creating a new one with no arguments. And then assigning key->newkey etc immediately afterwards. But I don’t understand why the constructor in this definition doesnt work. Maybe it’s because its a blueprinttype???