ue4 how to transfer an already existing structure to a c++ function

the question was rather about whether it is possible to use the structure declared in blueprint in c++ code. but apparently the answer is no. apparently, i will have to rewrite all the functions that involve the structure before using it in c++.
@xenofsnstudios has the closest to an answer.
@dagon1999 “preview equivalent c++ header” I didn’t find it, apparently it was added to ue5.
And I still don’t understand where I can declare the creation of a structure because if I declare a structure in an actor or a pure c++ class, then I get an error on the line

GENERATED_BODY()

and specifically, I don’t see the USTRUCT class in the choice of creating c++ classes