pub struct CollectCargoEvent {
pub kind: Commodity,
pub type_localized: Option<String>,
pub stolen: bool,
}
Expand description
Fired when the player collects a commodity.
Fields§
§kind: Commodity
The commodify the player has collected.
type_localized: Option<String>
The localized name of the commodity the player collected.
stolen: bool
Whether the collected commodity is considered stolen.
Trait Implementations§
Source§impl Clone for CollectCargoEvent
impl Clone for CollectCargoEvent
Source§fn clone(&self) -> CollectCargoEvent
fn clone(&self) -> CollectCargoEvent
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 CollectCargoEvent
impl Debug for CollectCargoEvent
Source§impl<'de> Deserialize<'de> for CollectCargoEvent
impl<'de> Deserialize<'de> for CollectCargoEvent
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 CollectCargoEvent
impl PartialEq for CollectCargoEvent
Source§impl Serialize for CollectCargoEvent
impl Serialize for CollectCargoEvent
impl StructuralPartialEq for CollectCargoEvent
Auto Trait Implementations§
impl Freeze for CollectCargoEvent
impl RefUnwindSafe for CollectCargoEvent
impl Send for CollectCargoEvent
impl Sync for CollectCargoEvent
impl Unpin for CollectCargoEvent
impl UnwindSafe for CollectCargoEvent
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