pub struct ModuleBuyEvent {
pub slot: ShipSlot,
pub stored_item: Option<ShipModule>,
pub stored_item_localized: Option<String>,
pub buy_item: ShipModule,
pub buy_item_localized: Option<String>,
pub market_id: u64,
pub buy_price: u64,
pub ship: ShipType,
pub ship_id: u64,
}
Expand description
Fired when buying a new module and equipping it to the current active ship.
Fields§
§slot: ShipSlot
The slot the module is installed into.
stored_item: Option<ShipModule>
The module that was in the given slot and is now stored at the current location.
stored_item_localized: Option<String>
The localized name of the module that was stored.
buy_item: ShipModule
The module that was bought and installed in the given slot.
buy_item_localized: Option<String>
The localized name of the bought module.
market_id: u64
The market id where the module was bought.
buy_price: u64
The number of credits that were spent on the module.
ship: ShipType
The type of the current active ship that the module has been installed onto.
ship_id: u64
The id of the current active ship that the module has been installed onto.
Trait Implementations§
Source§impl Clone for ModuleBuyEvent
impl Clone for ModuleBuyEvent
Source§fn clone(&self) -> ModuleBuyEvent
fn clone(&self) -> ModuleBuyEvent
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 ModuleBuyEvent
impl Debug for ModuleBuyEvent
Source§impl<'de> Deserialize<'de> for ModuleBuyEvent
impl<'de> Deserialize<'de> for ModuleBuyEvent
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 ModuleBuyEvent
impl PartialEq for ModuleBuyEvent
Source§impl Serialize for ModuleBuyEvent
impl Serialize for ModuleBuyEvent
impl StructuralPartialEq for ModuleBuyEvent
Auto Trait Implementations§
impl Freeze for ModuleBuyEvent
impl RefUnwindSafe for ModuleBuyEvent
impl Send for ModuleBuyEvent
impl Sync for ModuleBuyEvent
impl Unpin for ModuleBuyEvent
impl UnwindSafe for ModuleBuyEvent
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