pub struct ManifestDiff<'a> {
pub from: &'a ImageManifest,
pub to: &'a ImageManifest,
pub removed: Vec<&'a Descriptor>,
pub added: Vec<&'a Descriptor>,
pub total: u64,
pub total_size: u64,
pub n_removed: u64,
pub removed_size: u64,
pub n_added: u64,
pub added_size: u64,
}Expand description
Represents the difference in layer/blob content between two OCI image manifests.
Fields§
§from: &'a ImageManifestThe source container image manifest.
to: &'a ImageManifestThe target container image manifest.
removed: Vec<&'a Descriptor>Layers which are present in the old image but not the new image.
added: Vec<&'a Descriptor>Layers which are present in the new image but not the old image.
total: u64Total number of layers
total_size: u64Size of total number of layers.
n_removed: u64Number of layers removed
removed_size: u64Size of the number of layers removed
n_added: u64Number of packages added
added_size: u64Size of the number of layers added
Implementations§
source§impl<'a> ManifestDiff<'a>
impl<'a> ManifestDiff<'a>
sourcepub fn new(src: &'a ImageManifest, dest: &'a ImageManifest) -> Self
pub fn new(src: &'a ImageManifest, dest: &'a ImageManifest) -> Self
Compute the layer difference between two OCI image manifests.
source§impl<'a> ManifestDiff<'a>
impl<'a> ManifestDiff<'a>
Trait Implementations§
source§impl<'a> Debug for ManifestDiff<'a>
impl<'a> Debug for ManifestDiff<'a>
Auto Trait Implementations§
impl<'a> Freeze for ManifestDiff<'a>
impl<'a> RefUnwindSafe for ManifestDiff<'a>
impl<'a> Send for ManifestDiff<'a>
impl<'a> Sync for ManifestDiff<'a>
impl<'a> Unpin for ManifestDiff<'a>
impl<'a> UnwindSafe for ManifestDiff<'a>
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