You can’t assign one struct to another. You need to use one of the Memcpy variants, just like in plain old C programming.
If your struct has pointers, you’ll also need to decide if you want the copy to point to the original data or if you need to make a copy of the data being pointed to (which is one of the reasons you can’t just assign one struct to another).