pub fn save_to_yaml<P: AsRef<Path>>(&self, manifest: &P) -> Result<(), Error> {
        fs::write(manifest, serde_yaml::to_string(self).unwrap()).map_err(|e| {
            Error::Manifest(format!(
                "output to: '{}' cause: '{}'",
                manifest.as_ref().display(),
                e
            ))
        })
    }
/// Save to a YAML file if file already exists it will be overwritten.
/// Error
/// std::io::Error
/// # Arguments
///
/// * `manifest_file` full path to YAML manifest.
///
Save to a YAML file if file already exists it will be overwritten.
Error
std::io::Error
Save to a YAML file if file already exists it will be overwritten . Error std :: io :: Error
pub fn save_to_yaml<P: AsRef<Path>>(&self, manifest: &P) -> Result<(), Error> {
        fs::write(manifest, serde_yaml::to_string(self).unwrap()).map_err(|e| {
            Error::Manifest(format!(
                "output to: '{}' cause: '{}'",
                manifest.as_ref().display(),
                e
            ))
        })
    }
pub fn save_to_yaml < P : AsRef < Path > > ( & self , manifest : & P ) -> Result < ( ) , Error > { fs :: write ( manifest , serde_yaml :: to_string ( self ) . unwrap ( ) ) . map_err ( | e | { Error :: Manifest ( format ! ( " " manifest as_ref ( ) display ( ) e ) ) } ) }
Save to a YAML file if file already exists it will be overwritten.
Save to a YAML file if file already exists it will be overwritten .
&self
manifest
&P
&self
manifest
&P