pub struct CargoEvent {
pub vessel: CargoEventVessel,
pub inventory: Vec<CargoEventInventoryItem>,
}
Expand description
Fired when the player collected a commodity.
Fields§
§vessel: CargoEventVessel
The current vessel the player is currently piloting.
inventory: Vec<CargoEventInventoryItem>
The current inventory of the current vessel.
Trait Implementations§
Source§impl Clone for CargoEvent
impl Clone for CargoEvent
Source§fn clone(&self) -> CargoEvent
fn clone(&self) -> CargoEvent
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 CargoEvent
impl Debug for CargoEvent
Source§impl<'de> Deserialize<'de> for CargoEvent
impl<'de> Deserialize<'de> for CargoEvent
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 CargoEvent
impl PartialEq for CargoEvent
Source§impl Serialize for CargoEvent
impl Serialize for CargoEvent
impl StructuralPartialEq for CargoEvent
Auto Trait Implementations§
impl Freeze for CargoEvent
impl RefUnwindSafe for CargoEvent
impl Send for CargoEvent
impl Sync for CargoEvent
impl Unpin for CargoEvent
impl UnwindSafe for CargoEvent
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