pub struct ArtifactProfileCoverageSummary {
pub body_count: usize,
pub bodies: Vec<CelestialBody>,
pub profile: ArtifactProfile,
}Expand description
Structured body coverage attached to an artifact capability profile.
Fields§
§body_count: usizeNumber of bundled bodies that share the profile.
bodies: Vec<CelestialBody>Bodies bundled under the profile.
profile: ArtifactProfileCapability profile encoded by the artifact.
Implementations§
Source§impl ArtifactProfileCoverageSummary
impl ArtifactProfileCoverageSummary
Sourcepub fn new(profile: ArtifactProfile, bodies: Vec<CelestialBody>) -> Self
pub fn new(profile: ArtifactProfile, bodies: Vec<CelestialBody>) -> Self
Creates a profile coverage summary from the profile and bundled bodies.
Sourcepub fn validate(&self) -> Result<(), CompressionError>
pub fn validate(&self) -> Result<(), CompressionError>
Validates that the summary’s body count matches the bundled body list and that the embedded artifact profile is internally consistent.
Sourcepub fn summary_line(&self) -> String
pub fn summary_line(&self) -> String
Returns the capability summary annotated with how many bundled bodies currently appear in the summary.
Sourcepub fn validated_summary_line(&self) -> Result<String, CompressionError>
pub fn validated_summary_line(&self) -> Result<String, CompressionError>
Returns the validated capability summary annotated with how many bundled bodies currently appear in the summary.
Sourcepub fn summary_line_with_bodies(&self) -> String
pub fn summary_line_with_bodies(&self) -> String
Returns the capability summary annotated with how many bodies share it and lists the bundled bodies explicitly.
Sourcepub fn validated_summary_line_with_bodies(
&self,
) -> Result<String, CompressionError>
pub fn validated_summary_line_with_bodies( &self, ) -> Result<String, CompressionError>
Returns the bundled-body summary line after validating the coverage record.