pub struct CombatTargetHud {
pub entity_id: EntityId,
pub label: String,
pub level: u32,
pub health: f32,
pub health_max: f32,
pub life_state: LifeState,
pub distance_m: f32,
}Expand description
Observer combat HUD (local player only).
Fields§
§entity_id: EntityId§label: String§level: u32§health: f32§health_max: f32§life_state: LifeState§distance_m: f32Trait Implementations§
Source§impl Clone for CombatTargetHud
impl Clone for CombatTargetHud
Source§fn clone(&self) -> CombatTargetHud
fn clone(&self) -> CombatTargetHud
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CombatTargetHud
impl Debug for CombatTargetHud
Source§impl Default for CombatTargetHud
impl Default for CombatTargetHud
Source§fn default() -> CombatTargetHud
fn default() -> CombatTargetHud
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CombatTargetHud
impl<'de> Deserialize<'de> for CombatTargetHud
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 CombatTargetHud
impl PartialEq for CombatTargetHud
Source§impl Serialize for CombatTargetHud
impl Serialize for CombatTargetHud
impl StructuralPartialEq for CombatTargetHud
Auto Trait Implementations§
impl Freeze for CombatTargetHud
impl RefUnwindSafe for CombatTargetHud
impl Send for CombatTargetHud
impl Sync for CombatTargetHud
impl Unpin for CombatTargetHud
impl UnsafeUnpin for CombatTargetHud
impl UnwindSafe for CombatTargetHud
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