pub struct ModuleBuyAndStoreEvent {
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
When buying a module but storing at the current location instead of equipping it to the current ship.
Fields§
§buy_item: ShipModule
The purchased module that has been stored at the current location.
buy_item_localized: Option<String>
Localized name of the module that was purchased. Prefer using the [Display] trait on the ShipModule struct.
market_id: u64
The market ID from where the module was purchased.
buy_price: u64
The amount of credits that was spent to purchase the module.
ship: ShipType
The currently active ship time. It can be the case that the bought module can’t even be equipped to this ship type.
ship_id: u64
The current active ship, but the bought module was not equipped to this ship. It was just the ship that was active at the time of purchase.
Trait Implementations§
Source§impl Clone for ModuleBuyAndStoreEvent
impl Clone for ModuleBuyAndStoreEvent
Source§fn clone(&self) -> ModuleBuyAndStoreEvent
fn clone(&self) -> ModuleBuyAndStoreEvent
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 ModuleBuyAndStoreEvent
impl Debug for ModuleBuyAndStoreEvent
Source§impl<'de> Deserialize<'de> for ModuleBuyAndStoreEvent
impl<'de> Deserialize<'de> for ModuleBuyAndStoreEvent
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 ModuleBuyAndStoreEvent
impl PartialEq for ModuleBuyAndStoreEvent
Source§impl Serialize for ModuleBuyAndStoreEvent
impl Serialize for ModuleBuyAndStoreEvent
impl StructuralPartialEq for ModuleBuyAndStoreEvent
Auto Trait Implementations§
impl Freeze for ModuleBuyAndStoreEvent
impl RefUnwindSafe for ModuleBuyAndStoreEvent
impl Send for ModuleBuyAndStoreEvent
impl Sync for ModuleBuyAndStoreEvent
impl Unpin for ModuleBuyAndStoreEvent
impl UnwindSafe for ModuleBuyAndStoreEvent
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