Repository navigation
ref(server): Make the ourlog header a part of the item container - #4906
Merged
Merged
Conversation
loewenheim
approved these changes
Jul 7, 2025
| struct Layout<T> { | ||
| #[serde(bound(deserialize = "T: FromValue"))] | ||
| items: AnnotatedItems<T>, | ||
| #[serde(bound(deserialize = "T: ContainerItem"))] |
Contributor
There was a problem hiding this comment.
Is this annotation actually necessary?
Dav1dde
force-pushed
the
dav1d/item-container-header
branch
2 times, most recently
from
July 7, 2025 11:51
a339455 to
c005fba
Compare
Dav1dde
force-pushed
the
dav1d/item-container-header
branch
2 times, most recently
from
July 7, 2025 12:11
44f5435 to
5f48aaf
Compare
Dav1dde
force-pushed
the
dav1d/item-container-header
branch
from
July 7, 2025 12:13
5f48aaf to
f296351
Compare
Dav1dde
enabled auto-merge
July 7, 2025 12:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Makes the
__headeradded to theOurLogstruct officially part of the item container parsing. Each item contained in an item container can have an optional header__header.We might need some future bike-shedding on naming, currently it's named
WithHeaderand largely hidden behind theContainerItemstype alias. With some experimentation I was reasonably satisfied with the naming. I plan to explore in a follow-up PR to namespace all types just with the module, e.g.ContainerItems<T> -> container::Items<T>.Closes: #4881
#skip-changelog