Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While working on #6764 I found myself partially wanting this.
I'm not the biggest fan of the particulars of this implementation but it does do what I want, even though
ArtifactHash
is#[serde(transparent)]
. This has the effect of moving theto_string()
into the Progenitor-generated client, which can be nice if you're having a niche set of lifetime issues sinceArtifactHash
isCopy
. But because Progenitor implements this on a crate-by-crate basis, addingx-rust-type
to any additional types in omicron-common will mean making fixes across the tree wherever clients withcrates = { "omicron-common = "0.1.0 }
are used.This is a sort of take-it-or-leave-it PR; it's here if we want it but I'd like to get consensus that we actually want it.