Skip to content

Trait: Hydrate #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rruckley opened this issue Mar 27, 2024 Discussed in #71 · 1 comment · May be fixed by #73
Open

Trait: Hydrate #72

rruckley opened this issue Mar 27, 2024 Discussed in #71 · 1 comment · May be fixed by #73
Assignees
Labels
enhancement New feature or request Trait
Milestone

Comments

@rruckley
Copy link
Owner

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.

@rruckley rruckley added the enhancement New feature or request label Mar 27, 2024
@rruckley rruckley self-assigned this Mar 27, 2024
@rruckley rruckley added this to the 0.1.12 milestone Mar 27, 2024
@rruckley rruckley linked a pull request Mar 27, 2024 that will close this issue
@rruckley rruckley modified the milestones: 0.1.12, 0.1.13 Apr 14, 2024
@rruckley rruckley modified the milestones: 0.1.13, 0.1.14 Apr 23, 2024
@rruckley rruckley modified the milestones: 0.1.14, 0.1.15 May 7, 2024
@rruckley
Copy link
Owner Author

Consideration for how to represent both a reference to a foreign structure and the foreign structure itself.

@rruckley rruckley modified the milestones: 0.1.15, 0.1.16 May 21, 2024
@rruckley rruckley modified the milestones: 0.1.16, 0.2.0 Jun 5, 2024
@rruckley rruckley added the Trait label Aug 21, 2024
@rruckley rruckley changed the title Hydrate Trait Trait: Hydrate Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Trait
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant