pub struct EntityState {
pub id: EntityId,
pub transform: Transform,
pub label: String,
pub vitals: Option<PlayerVitals>,
pub inside_building: Option<String>,
}Fields§
§id: EntityId§transform: Transform§label: StringCharacter / display name (first letter used as map glyph for other players).
vitals: Option<PlayerVitals>§inside_building: Option<String>When inside a building interior (players only).
Trait Implementations§
Source§impl Clone for EntityState
impl Clone for EntityState
Source§fn clone(&self) -> EntityState
fn clone(&self) -> EntityState
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 EntityState
impl Debug for EntityState
Source§impl<'de> Deserialize<'de> for EntityState
impl<'de> Deserialize<'de> for EntityState
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 EntityState
impl PartialEq for EntityState
Source§fn eq(&self, other: &EntityState) -> bool
fn eq(&self, other: &EntityState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EntityState
impl Serialize for EntityState
impl StructuralPartialEq for EntityState
Auto Trait Implementations§
impl Freeze for EntityState
impl RefUnwindSafe for EntityState
impl Send for EntityState
impl Sync for EntityState
impl Unpin for EntityState
impl UnsafeUnpin for EntityState
impl UnwindSafe for EntityState
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