pub fn add_file_as_blob(
        &mut self,
        at_path: impl AsRef<str>,
        file: impl AsRef<str>,
    ) -> Result<()> {
        let at_path = at_path.as_ref();
        let file = file.as_ref();
        self.validate_ok_to_add_at_path(at_path)?;

        self.blobs.insert(at_path.to_string(), file.to_string());

        Ok(())
    }
/// Add a file to the package as a blob itself.
///
/// Errors
///
/// Will return an error if the path for the file is already being used.
/// Will return an error if any special package metadata paths are used.
Add a file to the package as a blob itself.
Errors

Will return an error if the path for the file is already being used.
Will return an error if any special package metadata paths are used.
Add a file to the package as a blob itself . Errors Will return an error if the path for the file is already being used . Will return an error if any special package metadata paths are used .
pub fn add_file_as_blob(
        &mut self,
        at_path: impl AsRef<str>,
        file: impl AsRef<str>,
    ) -> Result<()> {
        let at_path = at_path.as_ref();
        let file = file.as_ref();
        self.validate_ok_to_add_at_path(at_path)?;
        self.blobs.insert(at_path.to_string(), file.to_string());
        Ok(())
    }
pub fn add_file_as_blob ( & mut self , at_path : impl AsRef < str > , file : impl AsRef < str > , ) -> Result < ( ) > { let at_path = at_path . as_ref ( ) ; let file = file . as_ref ( ) ; self . validate_ok_to_add_at_path ( at_path ) ? ; self . blobs . insert ( at_path . to_string ( ) , file . to_string ( ) ) ; Ok ( ( ) ) }
Add a file to the package as a blob itself.
Add a file to the package as a blob itself .
&mut self
at_path
impl AsRef<str>
file
impl AsRef<str>
&mut self
at_path
impl AsRef<str>
file
impl AsRef<str>