pub fn commit_metadata(
entries: impl IntoIterator<Item = (String, Value)>,
refs: Option<&[&str]>,
collection_id: Option<&str>,
) -> ValueExpand description
Returns the a{sv} metadata dict of a new commit.
The entry order is part of the commit checksum. The dict holds these entries, in this order:
entries, in the order given, with duplicate keys keptostree.ref-bindingwith theref_bindingvalue forrefs, ifrefsis setostree.collection-bindingwithcollection_id, ifcollection_idis set
If refs is None, the dict holds neither binding key, and the function
ignores collection_id. Each value in entries must be a
Value::Variant, or Commit::serialize returns an error.