async fn store_nrs_map(&mut self, nrs_map: &NrsMap) -> Result<String> {
        // The NrsMapContainer is a Sequence where each NRS Map version is
        // an entry containing the XOR-URL of the Blob that contains the serialised NrsMap.
        // TODO: use RDF format
        let serialised_nrs_map = serde_json::to_string(nrs_map).map_err(|err| {
            Error::Serialisation(format!(
                "Couldn't serialise the NrsMap generated: {:?}",
                err
            ))
        })?;

        let nrs_map_xorurl = self
            .files_store_public_blob(serialised_nrs_map.as_bytes(), None, false)
            .await?;

        Ok(nrs_map_xorurl)
    }
// Private helper to serialise an NrsMap and store it in a Public Blob
Private helper to serialise an NrsMap and store it in a Public Blob
Private helper to serialise an NrsMap and store it in a Public Blob
async fn store_nrs_map(&mut self, nrs_map: &NrsMap) -> Result<String> {
        // The NrsMapContainer is a Sequence where each NRS Map version is
        // an entry containing the XOR-URL of the Blob that contains the serialised NrsMap.
        // TODO: use RDF format
        let serialised_nrs_map = serde_json::to_string(nrs_map).map_err(|err| {
            Error::Serialisation(format!(
                "Couldn't serialise the NrsMap generated: {:?}",
                err
            ))
        })?;
        let nrs_map_xorurl = self
            .files_store_public_blob(serialised_nrs_map.as_bytes(), None, false)
            .await?;
        Ok(nrs_map_xorurl)
    }
async fn store_nrs_map ( & mut self , nrs_map : & NrsMap ) -> Result < String > { // The NrsMapContainer is a Sequence where each NRS Map version is // an entry containing the XOR-URL of the Blob that contains the serialised NrsMap. // TODO: use RDF format let serialised_nrs_map = serde_json :: to_string ( nrs_map ) . map_err ( | err | { Error :: Serialisation ( format ! ( " " err ) ) } ) ? ; let nrs_map_xorurl = self . files_store_public_blob ( serialised_nrs_map . as_bytes ( ) , None , false ) . await ? ; Ok ( nrs_map_xorurl ) }
Private helper to serialise an NrsMap and store it in a Public Blob
Private helper to serialise an NrsMap and store it in a Public Blob
&mut self
nrs_map
&NrsMap