fn write_data(&mut self) -> Result<()> {
        let metadata = serde_json::to_string(&self)?;
        let mut file = File::create(utils::prefix_home(".gee/metadata.json"))?;
        file.write_all(metadata.as_bytes())?;
        Ok(())
    }
/// PARAMS: url = the url of the repository being recorded.
/// records meta data about the repository, and
/// writes it to .gee/metadata.json
url = the url of the repository being recorded.
records meta data about the repository, and
writes it to .gee/metadata.json
url = the url of the repository being recorded . records meta data about the repository and writes it to . gee / metadata . json
fn write_data(&mut self) -> Result<()> {
        let metadata = serde_json::to_string(&self)?;
        let mut file = File::create(utils::prefix_home(".gee/metadata.json"))?;
        file.write_all(metadata.as_bytes())?;
        Ok(())
    }
fn write_data ( & mut self ) -> Result < ( ) > { let metadata = serde_json :: to_string ( & self ) ? ; let mut file = File :: create ( utils :: prefix_home ( " " ) ) ? ; file . write_all ( metadata . as_bytes ( ) ) ? ; Ok ( ( ) ) }
PARAMS: url = the url of the repository being recorded.
PARAMS : url = the url of the repository being recorded .
&mut self
&mut self