pub struct InventoryUpdate {
pub new: Option<Vec<Item>>,
pub change: Option<Vec<Item>>,
pub del: Option<Vec<DeletedItem>>,
}
Expand description
Changes to the player’s inventory after interacting with traders or the flea market.
Fields§
§new: Option<Vec<Item>>
New items in inventory.
change: Option<Vec<Item>>
Changed items in inventory.
del: Option<Vec<DeletedItem>>
Deleted items in inventory.
Trait Implementations§
Source§impl Debug for InventoryUpdate
impl Debug for InventoryUpdate
Source§impl<'de> Deserialize<'de> for InventoryUpdate
impl<'de> Deserialize<'de> for InventoryUpdate
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
Auto Trait Implementations§
impl Freeze for InventoryUpdate
impl RefUnwindSafe for InventoryUpdate
impl Send for InventoryUpdate
impl Sync for InventoryUpdate
impl Unpin for InventoryUpdate
impl UnwindSafe for InventoryUpdate
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