pub struct ManifestOverlay {
pub components: Vec<ManifestComponent>,
}Expand description
A remote overlay that merges onto a baseline manifest.
The overlay contains a subset of components. For any component id present
in both baseline and overlay, the overlay’s fields replace the baseline’s.
For any component id present only in the overlay, it is appended.
Baseline-only entries remain unchanged.
The merge is deterministic: the result depends only on the content of baseline and overlay, not on ordering.
Fields§
§components: Vec<ManifestComponent>Overlay components to merge.
Implementations§
Source§impl ManifestOverlay
impl ManifestOverlay
Sourcepub fn merge_onto(&self, baseline: &Manifest) -> Manifest
pub fn merge_onto(&self, baseline: &Manifest) -> Manifest
Merge this overlay onto a baseline manifest.
Returns a new Manifest with the merged component list.
The baseline’s metadata (schema_version, sequence, etc.) is preserved.
Trait Implementations§
Source§impl Clone for ManifestOverlay
impl Clone for ManifestOverlay
Source§impl Debug for ManifestOverlay
impl Debug for ManifestOverlay
Source§impl<'de> Deserialize<'de> for ManifestOverlay
impl<'de> Deserialize<'de> for ManifestOverlay
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ManifestOverlay
impl PartialEq for ManifestOverlay
Source§impl Serialize for ManifestOverlay
impl Serialize for ManifestOverlay
impl StructuralPartialEq for ManifestOverlay
Auto Trait Implementations§
impl Freeze for ManifestOverlay
impl RefUnwindSafe for ManifestOverlay
impl Send for ManifestOverlay
impl Sync for ManifestOverlay
impl Unpin for ManifestOverlay
impl UnsafeUnpin for ManifestOverlay
impl UnwindSafe for ManifestOverlay
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more