// This function replaces the DB file on disk with contents of it self
This function replaces the DB file on disk with contents of it self
This function replaces the DB file on disk with contents of it self
pub fn store(&self) {
        let serialized = match serde_yaml::to_string(&*self) {
            Ok(string) => string,
            Err(error) => {
                panic!("Error serialize tips {}\n{}",
                       &*self, error)
            },
        };
        crate::helpers::write_to_file(&CONFIG.db_file, &serialized);
    }
pub fn store ( & self ) { let serialized = match serde_yaml :: to_string ( & * self ) { Ok ( string ) => string , Err ( error ) => { panic ! ( " \n " self error ) } , } ; crate :: helpers :: write_to_file ( & CONFIG . db_file , & serialized ) ; }
This function replaces the DB file on disk with contents of it self
This function replaces the DB file on disk with contents of it self
&self