pub struct Map {
pub mode: String,
pub name: String,
pub phase: MapPhase,
pub round: u32,
pub team_ct: TeamStatistics,
pub team_t: TeamStatistics,
pub num_matches_to_win_series: Option<u32>,
pub current_spectators: Option<u32>,
pub souvenirs_total: Option<u32>,
pub round_wins: HashMap<String, String>,
}Expand description
Map / series-level state.
Fields§
§mode: StringGame mode, e.g. "competitive", "casual", "deathmatch".
name: StringMap filename, e.g. "de_dust2".
phase: MapPhaseCurrent map phase.
round: u321-based round number within the current map.
team_ct: TeamStatisticsCounter-Terrorist team statistics.
team_t: TeamStatisticsTerrorist team statistics.
num_matches_to_win_series: Option<u32>Number of round wins required to win a series in this map.
current_spectators: Option<u32>Spectator count for the live broadcast (only present in some modes).
souvenirs_total: Option<u32>Souvenir packs awarded so far.
round_wins: HashMap<String, String>Per-round winner side, keyed by "<round_index>".
Values are typically "ct_win_..." / "t_win_...".
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Map
impl<'de> Deserialize<'de> for Map
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Map
impl StructuralPartialEq for Map
Auto Trait Implementations§
impl Freeze for Map
impl RefUnwindSafe for Map
impl Send for Map
impl Sync for Map
impl Unpin for Map
impl UnsafeUnpin for Map
impl UnwindSafe for Map
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