pub struct Record {Show 54 fields
pub filename: String,
pub filesize: usize,
pub lastmod: u64,
pub guid: Option<String>,
pub verlog: Option<u32>,
pub ver: Option<Version>,
pub verraw: Option<String>,
pub versave: Option<f32>,
pub versave2: Option<u32>,
pub verscenario: Option<f32>,
pub include_ai: Option<bool>,
pub speed_raw: Option<u32>,
pub speed: Option<String>,
pub recorder: Option<u16>,
pub totalplayers: Option<u8>,
pub mapsize_raw: Option<u32>,
pub mapsize: Option<String>,
pub revealmap_raw: Option<i32>,
pub revealmap: Option<String>,
pub mapx: Option<i32>,
pub mapy: Option<i32>,
pub nofog: Option<bool>,
pub instantbuild: Option<bool>,
pub enablecheats: Option<bool>,
pub restoretime: Option<u32>,
pub ismultiplayer: Option<bool>,
pub isconquest: Option<bool>,
pub relics2win: Option<i32>,
pub explored2win: Option<i32>,
pub anyorall: Option<bool>,
pub victorytype_raw: Option<i32>,
pub victorytype: Option<String>,
pub score2win: Option<i32>,
pub time2win_raw: Option<i32>,
pub time2win: Option<String>,
pub scenariofilename_raw: Option<Vec<u8>>,
pub scenariofilename: Option<String>,
pub instructions_raw: Option<Vec<u8>>,
pub instructions: Option<String>,
pub duration: u32,
pub chat: Vec<Chat>,
pub mapid: Option<u32>,
pub mapname: Option<String>,
pub difficulty_raw: Option<i32>,
pub difficulty: Option<String>,
pub lockteams: Option<bool>,
pub poplimit: Option<u32>,
pub gametype_raw: Option<u8>,
pub gametype: Option<String>,
pub lockdiplomacy: Option<bool>,
pub haswinner: bool,
pub matchup: Option<Vec<usize>>,
pub players: [Player; 9],
pub debug: DebugInfo,
}Expand description
Store information of this game extracted from the recorded game. Most fields will be None if not present in the recorded game or exception occurs during parsing
Fields§
§filename: String§filesize: usize§lastmod: u64§guid: Option<String>§verlog: Option<u32>§ver: Option<Version>§verraw: Option<String>§versave: Option<f32>11.76 for aoc10a/c
versave2: Option<u32>§verscenario: Option<f32>§include_ai: Option<bool>§speed_raw: Option<u32>§speed: Option<String>§recorder: Option<u16>§totalplayers: Option<u8>GAIA is counted
mapsize_raw: Option<u32>§mapsize: Option<String>§revealmap_raw: Option<i32>§revealmap: Option<String>§mapx: Option<i32>§mapy: Option<i32>§nofog: Option<bool>§instantbuild: Option<bool>§enablecheats: Option<bool>§restoretime: Option<u32>§ismultiplayer: Option<bool>§isconquest: Option<bool>§relics2win: Option<i32>§explored2win: Option<i32>§anyorall: Option<bool>§victorytype_raw: Option<i32>§victorytype: Option<String>§score2win: Option<i32>§time2win_raw: Option<i32>§time2win: Option<String>§scenariofilename_raw: Option<Vec<u8>>§scenariofilename: Option<String>§instructions_raw: Option<Vec<u8>>§instructions: Option<String>§duration: u32§chat: Vec<Chat>§mapid: Option<u32>§mapname: Option<String>§difficulty_raw: Option<i32>§difficulty: Option<String>§lockteams: Option<bool>§poplimit: Option<u32>§gametype_raw: Option<u8>§gametype: Option<String>§lockdiplomacy: Option<bool>§haswinner: bool§matchup: Option<Vec<usize>>§players: [Player; 9]§debug: DebugInfoDebug data used by the parser. Strip this out in output json.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.