pub struct SaveGameRecord {
pub error_list: HashSet<SaveError>,
pub farms: HashMap<usize, SaveGameFarm>,
pub is_valid: bool,
pub map_mod: Option<String>,
pub map_title: Option<String>,
pub mod_count: usize,
pub mods: HashMap<String, SaveGameMod>,
pub name: Option<String>,
pub play_time: String,
pub save_date: String,
pub single_farm: bool,
}Expand description
Data structure for a savegame
Fields§
§error_list: HashSet<SaveError>List of found errors
farms: HashMap<usize, SaveGameFarm>List of farms
is_valid: boolSave passed all checks
map_mod: Option<String>Map mod name (shortname)
map_title: Option<String>Map title
mod_count: usizeNumber of mods loaded
mods: HashMap<String, SaveGameMod>List of mods
name: Option<String>Name of the save
play_time: StringPlaytime in hours:minutes, hours is unbound
save_date: StringSave date, in rfc3339
single_farm: boolSingle player save
Implementations§
Trait Implementations§
Source§impl Display for SaveGameRecord
impl Display for SaveGameRecord
Auto Trait Implementations§
impl Freeze for SaveGameRecord
impl RefUnwindSafe for SaveGameRecord
impl Send for SaveGameRecord
impl Sync for SaveGameRecord
impl Unpin for SaveGameRecord
impl UnwindSafe for SaveGameRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more