pub struct CarrierDecommissionEvent {
pub carrier_id: u64,
pub scrap_refund: u64,
pub scrap_time: DateTime<Utc>,
}
Expand description
Fired when the player schedules their carrier for decommission.
Fields§
§carrier_id: u64
The id of the carrier that is being decommissioned. This is functionally the same as the market id.
scrap_refund: u64
The amount of credits the player receives back after the carrier has been decommissioned.
scrap_time: DateTime<Utc>
The timestamp after which the decommission is final.
Trait Implementations§
Source§impl Clone for CarrierDecommissionEvent
impl Clone for CarrierDecommissionEvent
Source§fn clone(&self) -> CarrierDecommissionEvent
fn clone(&self) -> CarrierDecommissionEvent
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 CarrierDecommissionEvent
impl Debug for CarrierDecommissionEvent
Source§impl<'de> Deserialize<'de> for CarrierDecommissionEvent
impl<'de> Deserialize<'de> for CarrierDecommissionEvent
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 CarrierDecommissionEvent
impl PartialEq for CarrierDecommissionEvent
Source§impl Serialize for CarrierDecommissionEvent
impl Serialize for CarrierDecommissionEvent
impl StructuralPartialEq for CarrierDecommissionEvent
Auto Trait Implementations§
impl Freeze for CarrierDecommissionEvent
impl RefUnwindSafe for CarrierDecommissionEvent
impl Send for CarrierDecommissionEvent
impl Sync for CarrierDecommissionEvent
impl Unpin for CarrierDecommissionEvent
impl UnwindSafe for CarrierDecommissionEvent
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