pub struct ShipyardTransferEvent {
pub ship_type: ShipType,
pub ship_type_localized: Option<String>,
pub ship_id: u64,
pub system: String,
pub ship_market_id: u64,
pub distance: f32,
pub transfer_price: u64,
pub transfer_time: u64,
pub market_id: u64,
}
Expand description
Fired when the player starts a ship transfer between stations.
Fields§
§ship_type: ShipType
The type of the ship that is transferred.
ship_type_localized: Option<String>
The localized name of the ship type that is transferred.
ship_id: u64
The id of the ship that is transferred.
system: String
The system the ship is transferred from.
ship_market_id: u64
The market id the ship is transferred from.
distance: f32
The total distance in LY for the transfer.
transfer_price: u64
The cost of the transfer.
transfer_time: u64
The time in seconds it takes for the transfer to complete.
market_id: u64
The current market id where the action was performed. This is also where the ship will be transferred to.
Trait Implementations§
Source§impl Clone for ShipyardTransferEvent
impl Clone for ShipyardTransferEvent
Source§fn clone(&self) -> ShipyardTransferEvent
fn clone(&self) -> ShipyardTransferEvent
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 ShipyardTransferEvent
impl Debug for ShipyardTransferEvent
Source§impl<'de> Deserialize<'de> for ShipyardTransferEvent
impl<'de> Deserialize<'de> for ShipyardTransferEvent
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 ShipyardTransferEvent
impl PartialEq for ShipyardTransferEvent
Source§impl Serialize for ShipyardTransferEvent
impl Serialize for ShipyardTransferEvent
impl StructuralPartialEq for ShipyardTransferEvent
Auto Trait Implementations§
impl Freeze for ShipyardTransferEvent
impl RefUnwindSafe for ShipyardTransferEvent
impl Send for ShipyardTransferEvent
impl Sync for ShipyardTransferEvent
impl Unpin for ShipyardTransferEvent
impl UnwindSafe for ShipyardTransferEvent
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