Something like a struct but with more control?

Yea, when it comes to the inventory system I know there are plenty of work arounds that don’t involve doing what I asked in the question, I’m just wondering if anything of that sort exists. I feel as though it would be useful. Thanks for the quick response