Struct ostree_ext::chunking::ObjectMetaSized
source · pub struct ObjectMetaSized {
pub map: ObjectMetaMap,
pub sizes: Vec<ObjectSourceMetaSized>,
}Expand description
Extend content source metadata with sizes.
Fields§
§map: ObjectMetaMapMapping from content object to source.
sizes: Vec<ObjectSourceMetaSized>Computed sizes of each content source
Implementations§
source§impl ObjectMetaSized
impl ObjectMetaSized
sourcepub fn compute_sizes(repo: &Repo, meta: ObjectMeta) -> Result<ObjectMetaSized>
pub fn compute_sizes(repo: &Repo, meta: ObjectMeta) -> Result<ObjectMetaSized>
Given object metadata and a repo, compute the size of each content source.