pub struct FetchRemoteModuleEvent {
pub storage_slot: u8,
pub stored_item: ShipModule,
pub stored_item_localized: Option<String>,
pub server_id: u64,
pub transfer_cost: u64,
pub transfer_time: u64,
pub ship: ShipType,
pub ship_id: u64,
}
Expand description
Fired when the player initiates a module transfer to move a module from another station to the station the player is currently docked at.
Fields§
§storage_slot: u8
The storage slot number of the stored module.
stored_item: ShipModule
The module being transferred.
stored_item_localized: Option<String>
The localized name of the module being transferred.
server_id: u64
The server id the module is coming from.
transfer_cost: u64
The number of credits it cost to transfer the module to the current location.
transfer_time: u64
The time it takes to transfer the module between locations in seconds.
ship: ShipType
The current active ship for the player.
ship_id: u64
The id of the current active ship for the player.
Trait Implementations§
Source§impl Clone for FetchRemoteModuleEvent
impl Clone for FetchRemoteModuleEvent
Source§fn clone(&self) -> FetchRemoteModuleEvent
fn clone(&self) -> FetchRemoteModuleEvent
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 FetchRemoteModuleEvent
impl Debug for FetchRemoteModuleEvent
Source§impl<'de> Deserialize<'de> for FetchRemoteModuleEvent
impl<'de> Deserialize<'de> for FetchRemoteModuleEvent
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 FetchRemoteModuleEvent
impl PartialEq for FetchRemoteModuleEvent
Source§impl Serialize for FetchRemoteModuleEvent
impl Serialize for FetchRemoteModuleEvent
impl StructuralPartialEq for FetchRemoteModuleEvent
Auto Trait Implementations§
impl Freeze for FetchRemoteModuleEvent
impl RefUnwindSafe for FetchRemoteModuleEvent
impl Send for FetchRemoteModuleEvent
impl Sync for FetchRemoteModuleEvent
impl Unpin for FetchRemoteModuleEvent
impl UnwindSafe for FetchRemoteModuleEvent
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