pub struct ModuleSellEvent {
pub market_id: u64,
pub slot: ShipSlot,
pub sell_item: ShipModule,
pub sell_item_localized: Option<String>,
pub sell_price: u64,
pub ship: ShipType,
pub ship_id: u64,
}Expand description
Fired when the player sells a module.
Fields§
§market_id: u64The market id where the player sold the module.
slot: ShipSlotThe slot the module was installed in.
sell_item: ShipModuleThe module that was sold.
sell_item_localized: Option<String>The localized name of the module that was sold.
sell_price: u64The number of credits received from selling the module.
ship: ShipTypeThe type of the current active ship that the module was installed onto.
ship_id: u64The id of the current active ship that the module was installed on.
Trait Implementations§
Source§impl Clone for ModuleSellEvent
impl Clone for ModuleSellEvent
Source§fn clone(&self) -> ModuleSellEvent
fn clone(&self) -> ModuleSellEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModuleSellEvent
impl Debug for ModuleSellEvent
Source§impl<'de> Deserialize<'de> for ModuleSellEvent
impl<'de> Deserialize<'de> for ModuleSellEvent
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 ModuleSellEvent
impl PartialEq for ModuleSellEvent
Source§fn eq(&self, other: &ModuleSellEvent) -> bool
fn eq(&self, other: &ModuleSellEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModuleSellEvent
impl Serialize for ModuleSellEvent
impl StructuralPartialEq for ModuleSellEvent
Auto Trait Implementations§
impl Freeze for ModuleSellEvent
impl RefUnwindSafe for ModuleSellEvent
impl Send for ModuleSellEvent
impl Sync for ModuleSellEvent
impl Unpin for ModuleSellEvent
impl UnsafeUnpin for ModuleSellEvent
impl UnwindSafe for ModuleSellEvent
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