Originally posted by **rruckley** March 27, 2024
It would be useful to define a trait for any reference type, that defines a function to hydrate a reference into a real payload. To keep it simple, this could just return a string version of the payload that can later be parsed into a struct if required.
Then any struct that's defined as a reference can implement this.
This would be handy for micro-services but also back-end systems that need to pull in referenced data.
Discussed in https://github.com/rruckley/tmflib/discussions/71