Skip to content
New issue

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

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

Already on GitHub? # to your account

Typed metadata #1313

Merged
merged 2 commits into from
Mar 23, 2023
Merged

Typed metadata #1313

merged 2 commits into from
Mar 23, 2023

Conversation

lann
Copy link
Collaborator

@lann lann commented Mar 21, 2023

This adds a MetadataKey<T> type that gives stronger typing for metadata values.

lann added 2 commits March 21, 2023 10:05
This adds a MetadataKey type which provides a more strongly-typed
interface to metadata values.

Signed-off-by: Lann Martin <lann.martin@fermyon.com>
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
@lann lann requested review from itowlson and fibonacci1729 March 21, 2023 15:22
@@ -71,30 +69,3 @@ impl ValuesMapBuilder {
std::mem::take(&mut self.0)
}
}

pub(crate) trait MetadataExt {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved into metadata.rs

@lann lann merged commit 7b0e5a6 into fermyon:main Mar 23, 2023
@lann lann deleted the typed-metadata branch March 23, 2023 13:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants