pub fn save(&mut self) -> Result<()> {
        let mut file_path = get_config_path()?.join(SCHEMA_FOLDER);
        DirBuilder::new().recursive(true).create(&file_path)?;

        file_path.push(SCHEMA_PATCHES_FILE);
        let mut file = File::create(&file_path)?;
        let config = PrettyConfig::default();
        file.write_all(to_string_pretty(&self, config)?.as_bytes())?;
        Ok(())
    }
/// This function saves a `SchemaPatches` from memory to a file in the `schemas/` folder.
This function saves a `SchemaPatches` from memory to a file in the `schemas/` folder.
This function saves a ` SchemaPatches ` from memory to a file in the ` schemas / ` folder .
pub fn save(&mut self) -> Result<()> {
        let mut file_path = get_config_path()?.join(SCHEMA_FOLDER);
        DirBuilder::new().recursive(true).create(&file_path)?;
        file_path.push(SCHEMA_PATCHES_FILE);
        let mut file = File::create(&file_path)?;
        let config = PrettyConfig::default();
        file.write_all(to_string_pretty(&self, config)?.as_bytes())?;
        Ok(())
    }
pub fn save ( & mut self ) -> Result < ( ) > { let mut file_path = get_config_path ( ) ? . join ( SCHEMA_FOLDER ) ; DirBuilder :: new ( ) . recursive ( true ) . create ( & file_path ) ? ; file_path . push ( SCHEMA_PATCHES_FILE ) ; let mut file = File :: create ( & file_path ) ? ; let config = PrettyConfig :: default ( ) ; file . write_all ( to_string_pretty ( & self , config ) ? . as_bytes ( ) ) ? ; Ok ( ( ) ) }
This function saves a `SchemaPatches` from memory to a file in the `schemas/` folder.
This function saves a ` SchemaPatches ` from memory to a file in the ` schemas / ` folder .
&mut self
&mut self