pub struct ScoreUpdate {
pub id: Player,
pub score: Score,
pub earnings: Score,
pub upgrades: u16,
pub total_kills: u32,
pub total_deaths: u32,
}Fields§
§id: Player§score: Score§earnings: Score§upgrades: u16The number of unused upgrades that the player has.
total_kills: u32§total_deaths: u32Trait Implementations§
Source§impl Clone for ScoreUpdate
impl Clone for ScoreUpdate
Source§fn clone(&self) -> ScoreUpdate
fn clone(&self) -> ScoreUpdate
Returns a duplicate 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 ScoreUpdate
impl Debug for ScoreUpdate
Source§impl<'de> DeserializeV5<'de> for ScoreUpdate
impl<'de> DeserializeV5<'de> for ScoreUpdate
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<ScoreUpdate> for ServerPacket
impl From<ScoreUpdate> for ServerPacket
Source§fn from(v: ScoreUpdate) -> Self
fn from(v: ScoreUpdate) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for ScoreUpdate
impl SerializeV5 for ScoreUpdate
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for ScoreUpdate
Auto Trait Implementations§
impl Freeze for ScoreUpdate
impl RefUnwindSafe for ScoreUpdate
impl Send for ScoreUpdate
impl Sync for ScoreUpdate
impl Unpin for ScoreUpdate
impl UnwindSafe for ScoreUpdate
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