pub struct EjectCargoEvent {
pub kind: Commodity,
pub type_localized: Option<String>,
pub count: u16,
pub abandoned: bool,
}
Expand description
Fired when ejecting cargo out of the player’s ship.
Fields§
§kind: Commodity
The commodity the player ejected.
type_localized: Option<String>
The localized name of the commodity the player ejected.
count: u16
The number of commodities that were ejected.
abandoned: bool
Whether the ejected commodities were abandoned.
Trait Implementations§
Source§impl Clone for EjectCargoEvent
impl Clone for EjectCargoEvent
Source§fn clone(&self) -> EjectCargoEvent
fn clone(&self) -> EjectCargoEvent
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 EjectCargoEvent
impl Debug for EjectCargoEvent
Source§impl<'de> Deserialize<'de> for EjectCargoEvent
impl<'de> Deserialize<'de> for EjectCargoEvent
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 EjectCargoEvent
impl PartialEq for EjectCargoEvent
Source§impl Serialize for EjectCargoEvent
impl Serialize for EjectCargoEvent
impl StructuralPartialEq for EjectCargoEvent
Auto Trait Implementations§
impl Freeze for EjectCargoEvent
impl RefUnwindSafe for EjectCargoEvent
impl Send for EjectCargoEvent
impl Sync for EjectCargoEvent
impl Unpin for EjectCargoEvent
impl UnwindSafe for EjectCargoEvent
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