Skip to content

Trait: Hydrate #72

@rruckley

Description

@rruckley

Discussed in #71

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions