pub struct CargoEventInventoryItem {
pub name: Commodity,
pub count: u16,
pub stolen: u16,
}
Expand description
An entry for an item in the player’s inventory.
Fields§
§name: Commodity
The type of commodity.
count: u16
The number of tonnes the player has for this commodity.
stolen: u16
Whether the commodity is considered stolen.
Trait Implementations§
Source§impl Clone for CargoEventInventoryItem
impl Clone for CargoEventInventoryItem
Source§fn clone(&self) -> CargoEventInventoryItem
fn clone(&self) -> CargoEventInventoryItem
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 CargoEventInventoryItem
impl Debug for CargoEventInventoryItem
Source§impl<'de> Deserialize<'de> for CargoEventInventoryItem
impl<'de> Deserialize<'de> for CargoEventInventoryItem
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 CargoEventInventoryItem
impl PartialEq for CargoEventInventoryItem
Source§impl Serialize for CargoEventInventoryItem
impl Serialize for CargoEventInventoryItem
impl StructuralPartialEq for CargoEventInventoryItem
Auto Trait Implementations§
impl Freeze for CargoEventInventoryItem
impl RefUnwindSafe for CargoEventInventoryItem
impl Send for CargoEventInventoryItem
impl Sync for CargoEventInventoryItem
impl Unpin for CargoEventInventoryItem
impl UnwindSafe for CargoEventInventoryItem
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