pub struct ShipyardSwapEvent {
pub ship_type: ShipType,
pub ship_type_localized: Option<String>,
pub ship_id: u64,
pub store_old_ship: ShipType,
pub store_ship_id: u64,
pub market_id: u64,
}
Expand description
Fired when the player swaps between two ships they own.
Fields§
§ship_type: ShipType
The ship type for the retrieved ship.
ship_type_localized: Option<String>
The localized ship type for the retrieved ship.
ship_id: u64
The id of the ship that was retrieved.
store_old_ship: ShipType
The type of the ship that was stored.
store_ship_id: u64
The id of the ship that was stored.
market_id: u64
The current market id the action was performed. This is also where the current ship will be stored.
Trait Implementations§
Source§impl Clone for ShipyardSwapEvent
impl Clone for ShipyardSwapEvent
Source§fn clone(&self) -> ShipyardSwapEvent
fn clone(&self) -> ShipyardSwapEvent
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 ShipyardSwapEvent
impl Debug for ShipyardSwapEvent
Source§impl<'de> Deserialize<'de> for ShipyardSwapEvent
impl<'de> Deserialize<'de> for ShipyardSwapEvent
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 ShipyardSwapEvent
impl PartialEq for ShipyardSwapEvent
Source§impl Serialize for ShipyardSwapEvent
impl Serialize for ShipyardSwapEvent
impl StructuralPartialEq for ShipyardSwapEvent
Auto Trait Implementations§
impl Freeze for ShipyardSwapEvent
impl RefUnwindSafe for ShipyardSwapEvent
impl Send for ShipyardSwapEvent
impl Sync for ShipyardSwapEvent
impl Unpin for ShipyardSwapEvent
impl UnwindSafe for ShipyardSwapEvent
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