pub struct ModuleSwapEvent {
pub market_id: u64,
pub from_slot: ShipSlot,
pub to_slot: ShipSlot,
pub from_item: ShipModule,
pub from_item_localized: Option<String>,
pub to_item: Option<ShipModule>,
pub to_item_localized: Option<String>,
pub ship: ShipType,
pub ship_id: u64,
}
Expand description
Fired when swapping a module from one slot to another.
Fields§
§market_id: u64
The market id the player is performing the action at.
from_slot: ShipSlot
The slot that the module was originally in.
to_slot: ShipSlot
The slot that the module has been moved to.
from_item: ShipModule
The module that was in the ‘from’ slot.
from_item_localized: Option<String>
The localized name of the module that was in the ‘from’ slot.
to_item: Option<ShipModule>
The module that was originally in the ‘to’ slot and that has now been placed in the ‘from’ slot.
to_item_localized: Option<String>
The localized name of the module that was in the ‘to’ slot.
ship: ShipType
The id of the current active ship.
ship_id: u64
Whether the module is hot.
Trait Implementations§
Source§impl Clone for ModuleSwapEvent
impl Clone for ModuleSwapEvent
Source§fn clone(&self) -> ModuleSwapEvent
fn clone(&self) -> ModuleSwapEvent
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 ModuleSwapEvent
impl Debug for ModuleSwapEvent
Source§impl<'de> Deserialize<'de> for ModuleSwapEvent
impl<'de> Deserialize<'de> for ModuleSwapEvent
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 ModuleSwapEvent
impl PartialEq for ModuleSwapEvent
Source§impl Serialize for ModuleSwapEvent
impl Serialize for ModuleSwapEvent
impl StructuralPartialEq for ModuleSwapEvent
Auto Trait Implementations§
impl Freeze for ModuleSwapEvent
impl RefUnwindSafe for ModuleSwapEvent
impl Send for ModuleSwapEvent
impl Sync for ModuleSwapEvent
impl Unpin for ModuleSwapEvent
impl UnwindSafe for ModuleSwapEvent
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