fn save(&self, path: &mut String) {
        path.push_str(&self.name);
        path.push_str(".campaign");
        clean_path_name(path);
        let file = File::create(path.trim()).expect("Failed to create Campaign file.");
        serde_json::to_writer_pretty(file, &self).expect("Failed to save Campaign to file.");
    }
/// Saves `Campaign` to path
Saves `Campaign` to path
Saves ` Campaign ` to path
fn save(&self, path: &mut String) {
        path.push_str(&self.name);
        path.push_str(".campaign");
        clean_path_name(path);
        let file = File::create(path.trim()).expect("Failed to create Campaign file.");
        serde_json::to_writer_pretty(file, &self).expect("Failed to save Campaign to file.");
    }
fn save ( & self , path : & mut String ) { path . push_str ( & self . name ) ; path . push_str ( " " ) ; clean_path_name ( path ) ; let file = File :: create ( path . trim ( ) ) . expect ( " " ) ; serde_json :: to_writer_pretty ( file , & self ) . expect ( " " ) ; }
Saves `Campaign` to path
Saves ` Campaign ` to path
&self
path
&mut String
&self
path
&mut String