pub fn load() -> Result<Self> {
        let mut file_path = get_config_path()?.join(SCHEMA_FOLDER);
        file_path.push(SCHEMA_PATCHES_FILE);

        let mut file = BufReader::new(File::open(&file_path)?);
        let mut data = Vec::with_capacity(file.get_ref().metadata()?.len() as usize);
        file.read_to_end(&mut data)?;
        from_bytes(&data).map_err(From::from)
    }
/// This function loads a `SchemaPatches` to memory from a file in the `schemas/` folder.
This function loads a `SchemaPatches` to memory from a file in the `schemas/` folder.
This function loads a ` SchemaPatches ` to memory from a file in the ` schemas / ` folder .
pub fn load() -> Result<Self> {
        let mut file_path = get_config_path()?.join(SCHEMA_FOLDER);
        file_path.push(SCHEMA_PATCHES_FILE);
        let mut file = BufReader::new(File::open(&file_path)?);
        let mut data = Vec::with_capacity(file.get_ref().metadata()?.len() as usize);
        file.read_to_end(&mut data)?;
        from_bytes(&data).map_err(From::from)
    }
pub fn load ( ) -> Result < Self > { let mut file_path = get_config_path ( ) ? . join ( SCHEMA_FOLDER ) ; file_path . push ( SCHEMA_PATCHES_FILE ) ; let mut file = BufReader :: new ( File :: open ( & file_path ) ? ) ; let mut data = Vec :: with_capacity ( file . get_ref ( ) . metadata ( ) ? . len ( ) as usize ) ; file . read_to_end ( & mut data ) ? ; from_bytes ( & data ) . map_err ( From :: from ) }
This function loads a `SchemaPatches` to memory from a file in the `schemas/` folder.
This function loads a ` SchemaPatches ` to memory from a file in the ` schemas / ` folder .