Confirming the workaround of assigning the struct to a local variable that will then be modified works.