extract_item_by_epoch

Function extract_item_by_epoch 

Source
pub fn extract_item_by_epoch(
    items_per_hash: &BTreeMap<String, String>,
    json_pointer_for_epoch: &str,
) -> BTreeMap<u64, String>
Expand description

Takes a map of json string indexed by hashes and re-indexes them using their epoch

Each item in the map must contain an epoch value at the specified JSON pointer location.