pub struct OnFootStatus {
pub oxygen: f32,
pub health: f32,
pub temperature: f32,
pub selected_weapon: String,
pub selected_weapon_localized: Option<String>,
}
Expand description
This model contains the fields which are included when the player is on-foot.
Fields§
§oxygen: f32
The percentage of oxygen the player currently has left.
health: f32
The percentage of health the player currently has left.
temperature: f32
The current temperature of the player.
selected_weapon: String
The name of the weapon the player currently has selected.
selected_weapon_localized: Option<String>
Trait Implementations§
Source§impl Clone for OnFootStatus
impl Clone for OnFootStatus
Source§fn clone(&self) -> OnFootStatus
fn clone(&self) -> OnFootStatus
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OnFootStatus
impl Debug for OnFootStatus
Source§impl<'de> Deserialize<'de> for OnFootStatus
impl<'de> Deserialize<'de> for OnFootStatus
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
Source§impl PartialEq for OnFootStatus
impl PartialEq for OnFootStatus
Source§impl Serialize for OnFootStatus
impl Serialize for OnFootStatus
impl StructuralPartialEq for OnFootStatus
Auto Trait Implementations§
impl Freeze for OnFootStatus
impl RefUnwindSafe for OnFootStatus
impl Send for OnFootStatus
impl Sync for OnFootStatus
impl Unpin for OnFootStatus
impl UnwindSafe for OnFootStatus
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