pub struct Body {
pub map: Option<Map>,
pub player: Option<Player>,
pub provider: Option<Provider>,
pub round: Option<Round>,
pub grenades: HashMap<String, Grenades>,
pub allplayers: HashMap<String, Player>,
pub bomb: Option<Bomb>,
pub phase_countdowns: Option<PhaseCountdowns>,
pub auth: HashMap<String, String>,
/* private fields */
}
Fields§
§map: Option<Map>
Current map - the game, information about what is currently happening on the map, for example, objects, information about round… Refer to Map.
player: Option<Player>
Information about the player, his status, weapons, in-game activity, stats… Refer to Player.
provider: Option<Provider>
GSI provider information, version, timestamp of the last gsi update. Refer to Provider.
round: Option<Round>
Information about round, round state, bomb state info, win team. Refer to Round.
grenades: HashMap<String, Grenades>
Information about grenades projectiles. Refer to Grenades.
allplayers: HashMap<String, Player>
Information about all players in the game. Refer to Player.
bomb: Option<Bomb>
Information about bomb, state, positon… Refer to Bomb.
phase_countdowns: Option<PhaseCountdowns>
Phase countdowns, when round is ending, and what phase. Refer to PhaseCountdowns.
auth: HashMap<String, String>
Authentication field here can be found token that is written inside gamestate config.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Body
impl<'de> Deserialize<'de> for Body
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 Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnwindSafe for Body
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