pub struct Bomb {
pub state: BombState,
pub position: String,
pub player: String,
pub countdown: Option<f32>,
}Expand description
Bomb status as a separate root key. More detailed than the per-round
state in crate::model::round::BombRoundState.
Fields§
§state: BombStateLifecycle state of the bomb.
position: StringWorld position, formatted by CS2 as "x, y, z".
player: StringSteamID of the player carrying / defusing the bomb (if any).
countdown: Option<f32>Countdown until detonation / defuse, in seconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bomb
impl<'de> Deserialize<'de> for Bomb
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 StructuralPartialEq for Bomb
Auto Trait Implementations§
impl Freeze for Bomb
impl RefUnwindSafe for Bomb
impl Send for Bomb
impl Sync for Bomb
impl Unpin for Bomb
impl UnsafeUnpin for Bomb
impl UnwindSafe for Bomb
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