Structs represent pure data structures and should not be treated as objects that you inject as dependencies. They don’t “do things”, they only expose values. There’s simply no reason for injecting them anywhere because of this.
Structs represent pure data structures and should not be treated as objects that you inject as dependencies. They don’t “do things”, they only expose values. There’s simply no reason for injecting them anywhere because of this.