pub struct PlayerLevel {
pub id: Player,
pub ty: PlayerLevelType,
pub level: Level,
}Expand description
Assign a level to a player.
Either the player levelled up, or the server is updating their level for all clients.
Fields§
§id: Player§ty: PlayerLevelType§level: LevelTrait Implementations§
Source§impl Clone for PlayerLevel
impl Clone for PlayerLevel
Source§fn clone(&self) -> PlayerLevel
fn clone(&self) -> PlayerLevel
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 PlayerLevel
impl Debug for PlayerLevel
Source§impl<'de> DeserializeV5<'de> for PlayerLevel
impl<'de> DeserializeV5<'de> for PlayerLevel
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<PlayerLevel> for ServerPacket
impl From<PlayerLevel> for ServerPacket
Source§fn from(v: PlayerLevel) -> Self
fn from(v: PlayerLevel) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for PlayerLevel
impl SerializeV5 for PlayerLevel
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for PlayerLevel
Auto Trait Implementations§
impl Freeze for PlayerLevel
impl RefUnwindSafe for PlayerLevel
impl Send for PlayerLevel
impl Sync for PlayerLevel
impl Unpin for PlayerLevel
impl UnwindSafe for PlayerLevel
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