pub fn store(&self, file_path: &str) {

        // Serialize the Config struct
        let data = match serde_yaml::to_string(&*self) {
            Ok(string) => string,
            Err(err)   => {
                panic!("Error when serializing Config struc: {:?}\n{}",
                       self, err);
            },
        };

        crate::helpers::write_to_file(&file_path, &data);
    }
// This function takes the Config struct and write it to specified file
This function takes the Config struct and write it to specified file
This function takes the Config struct and write it to specified file
pub fn store(&self, file_path: &str) {
        // Serialize the Config struct
        let data = match serde_yaml::to_string(&*self) {
            Ok(string) => string,
            Err(err)   => {
                panic!("Error when serializing Config struc: {:?}\n{}",
                       self, err);
            },
        };
        crate::helpers::write_to_file(&file_path, &data);
    }
pub fn store ( & self , file_path : & str ) { // Serialize the Config struct let data = match serde_yaml :: to_string ( & * self ) { Ok ( string ) => string , Err ( err ) => { panic ! ( " \n " self err ) ; } , } ; crate :: helpers :: write_to_file ( & file_path , & data ) ; }
This function takes the Config struct and write it to specified file
This function takes the Config struct and write it to specified file
&self
file_path
&str
&self
file_path
&str