pub async fn create_blob(&self) -> Result<Blob<'a>, std::io::Error> {
        let blob_id = Uuid::new_v4().to_string();
        let path = format!("{}/{}", &self.blob_dir, &blob_id);
        let file = File::create(&path).await?;
        Ok(Blob {
            file,
            blob_dir: self.blob_dir,
            blob_id,
        })
    }
/// Creates a blob reference with an actual file reference
Creates a blob reference with an actual file reference
Creates a blob reference with an actual file reference
pub async fn create_blob(&self) -> Result<Blob<'a>, std::io::Error> {
        let blob_id = Uuid::new_v4().to_string();
        let path = format!("{}/{}", &self.blob_dir, &blob_id);
        let file = File::create(&path).await?;
        Ok(Blob {
            file,
            blob_dir: self.blob_dir,
            blob_id,
        })
    }
pub async fn create_blob ( & self ) -> Result < Blob < ' a > , std :: io :: Error > { let blob_id = Uuid :: new_v4 ( ) . to_string ( ) ; let path = format ! ( " " self blob_dir blob_id ) ; let file = File :: create ( & path ) . await ? ; Ok ( Blob { file , blob_dir : self . blob_dir , blob_id , } ) }
Creates a blob reference with an actual file reference
Creates a blob reference with an actual file reference
&self
&self