From my very recent experience, that will most likely become a Cat S Total Loss. Have a look at what is being auctioned here - you'll be amazed what gets 'written off' by the insurance companies.
iaai auction search
Probably not what you wanted to hear but you will most likely have the option to buy the car back. It'll always have the fact it was structurally damaged on the V5 though,