pub struct Map {
pub mode: Mode,
pub name: String,
pub phase: Phase,
pub round: u32,
pub team_t: TeamSubsection,
pub team_ct: TeamSubsection,
pub num_matches_to_win_series: u16,
pub current_spectators: Option<u64>,
pub souvenirs_total: u64,
pub round_wins: HashMap<u16, RoundWinCondition>,
}Fields§
§mode: ModeGamemode. See Mode.
name: StringName of the map.
phase: PhaseCurrent phase of the game. See Phase.
round: u32Current round number.
team_t: TeamSubsectionInformation about the Ts. See TeamSubsection.
team_ct: TeamSubsectionInformation about the CTs. See TeamSubsection.
num_matches_to_win_series: u16Number of matches to win the series.
Used on “Best of X” games.
current_spectators: Option<u64>Number of spectators.
souvenirs_total: u64Number of souvenirs packages dropped during the game.
round_wins: HashMap<u16, RoundWinCondition>See RoundWinCondition.
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
Auto Trait Implementations§
impl Freeze for Map
impl RefUnwindSafe for Map
impl Send for Map
impl Sync for Map
impl Unpin 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