pub struct BackpackChangeEventItem {
pub name: Item,
pub name_localized: Option<String>,
pub owner_id: u64,
pub count: u16,
pub kind: ItemCategory,
}
Expand description
Item which has been added or removed from the player’s backpack.
Fields§
§name: Item
The item which has been changed.
name_localized: Option<String>
The localized name of the item which has been changed.
owner_id: u64
The id of the owner of the item.
count: u16
The number of items which have been changed.
kind: ItemCategory
The type of items which has been changed.
Trait Implementations§
Source§impl Clone for BackpackChangeEventItem
impl Clone for BackpackChangeEventItem
Source§fn clone(&self) -> BackpackChangeEventItem
fn clone(&self) -> BackpackChangeEventItem
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 BackpackChangeEventItem
impl Debug for BackpackChangeEventItem
Source§impl<'de> Deserialize<'de> for BackpackChangeEventItem
impl<'de> Deserialize<'de> for BackpackChangeEventItem
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 BackpackChangeEventItem
impl PartialEq for BackpackChangeEventItem
Source§impl Serialize for BackpackChangeEventItem
impl Serialize for BackpackChangeEventItem
impl StructuralPartialEq for BackpackChangeEventItem
Auto Trait Implementations§
impl Freeze for BackpackChangeEventItem
impl RefUnwindSafe for BackpackChangeEventItem
impl Send for BackpackChangeEventItem
impl Sync for BackpackChangeEventItem
impl Unpin for BackpackChangeEventItem
impl UnwindSafe for BackpackChangeEventItem
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