pub struct CargoTransferEventTransfer {
pub kind: Commodity,
pub count: u16,
pub direction: CargoTransferEventTransferDirection,
}
Expand description
An transfer which the player has performed.
Fields§
§kind: Commodity
The type of commodity which has been transferred.
count: u16
The number of items which have been transferred.
direction: CargoTransferEventTransferDirection
Where the commodity has been transferred to.
Trait Implementations§
Source§impl Clone for CargoTransferEventTransfer
impl Clone for CargoTransferEventTransfer
Source§fn clone(&self) -> CargoTransferEventTransfer
fn clone(&self) -> CargoTransferEventTransfer
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 CargoTransferEventTransfer
impl Debug for CargoTransferEventTransfer
Source§impl<'de> Deserialize<'de> for CargoTransferEventTransfer
impl<'de> Deserialize<'de> for CargoTransferEventTransfer
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
impl StructuralPartialEq for CargoTransferEventTransfer
Auto Trait Implementations§
impl Freeze for CargoTransferEventTransfer
impl RefUnwindSafe for CargoTransferEventTransfer
impl Send for CargoTransferEventTransfer
impl Sync for CargoTransferEventTransfer
impl Unpin for CargoTransferEventTransfer
impl UnwindSafe for CargoTransferEventTransfer
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