Skip to main content

compute_metadata_changes

Function compute_metadata_changes 

Source
pub fn compute_metadata_changes(
    old: &NormalizedSbom,
    new: &NormalizedSbom,
) -> Vec<MetadataChange>
Expand description

Compute document-level metadata changes between two SBOMs.

Returns a deterministic, ordered list of MetadataChange entries covering the document name, format/spec version, creation timestamp, creators (authors and tools), lifecycle phase, signature, and document- / primary-component version. An empty vec means the metadata is unchanged.