/// Return only most recent metadata. This will be determined based on the
/// uuid of the entry and the last_change field.
Return only most recent metadata. This will be determined based on the
uuid of the entry and the last_change field.
Return only most recent metadata . This will be determined based on the uuid of the entry and the last_change field .
pub(crate) fn metadata_most_recent(&self) -> Result<BTreeSet<Metadata>, Error> {
        let metadata = self
            .metadata()?
            .into_iter()
            .map(|metadata| (metadata.uuid, metadata))
            .collect::<BTreeMap<_, _>>()
            .into_iter()
            .map(|(_, metadata)| metadata)
            .collect();
        Ok(metadata)
    }
pub ( crate ) fn metadata_most_recent ( & self ) -> Result < BTreeSet < Metadata > , Error > { let metadata = self . metadata ( ) ? . into_iter ( ) . map ( | metadata | ( metadata . uuid , metadata ) ) . collect :: < BTreeMap < _ , _ > > ( ) . into_iter ( ) . map ( | ( _ , metadata ) | metadata ) . collect ( ) ; Ok ( metadata ) }
Return only most recent metadata.
Return only most recent metadata .
&self