/// Verify and update metadata. Returns true if any of the metadata was updated.
Verify and update metadata. Returns true if any of the metadata was updated.
Verify and update metadata . Returns true if any of the metadata was updated .
pub fn update_metadata(&mut self, metadata: &RawSignedMetadataSet<D>) -> Result<bool> {
        let updated = if let Some(root) = metadata.root() {
            self.update_root(root)?;
            true
        } else {
            false
        };
        if self.update_metadata_after_root(metadata)? {
            Ok(true)
        } else {
            Ok(updated)
        }
    }
pub fn update_metadata ( & mut self , metadata : & RawSignedMetadataSet < D > ) -> Result < bool > { let updated = if let Some ( root ) = metadata . root ( ) { self . update_root ( root ) ? ; true } else { false } ; if self . update_metadata_after_root ( metadata ) ? { Ok ( true ) } else { Ok ( updated ) } }
Verify and update metadata.
Verify and update metadata .
&mut self
metadata
&RawSignedMetadataSet<D>