pub struct CarrierShipPackEvent {
pub carrier_id: u64,
pub operation: CarrierShipPackEventOperation,
pub pack_theme: String,
pub pack_tier: u8,
pub cost: Option<u64>,
pub refund: Option<u64>,
}
Expand description
Fired when managing ship packs on a fleet carrier.
Fields§
§carrier_id: u64
The id of the carrier that the player deposited fuel to. This is functionally the same as the market id.
operation: CarrierShipPackEventOperation
The kind of operation performed.
pack_theme: String
The name of the pack theme.
pack_tier: u8
The tier of the pack.
cost: Option<u64>
The number of credits that the transaction has cost. Mutually exclusive with the refund
field.
refund: Option<u64>
The number of credits which have been refunded to the commanders account. Mutually exclusive
with the cost
field.
Trait Implementations§
Source§impl Clone for CarrierShipPackEvent
impl Clone for CarrierShipPackEvent
Source§fn clone(&self) -> CarrierShipPackEvent
fn clone(&self) -> CarrierShipPackEvent
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 CarrierShipPackEvent
impl Debug for CarrierShipPackEvent
Source§impl<'de> Deserialize<'de> for CarrierShipPackEvent
impl<'de> Deserialize<'de> for CarrierShipPackEvent
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 CarrierShipPackEvent
impl PartialEq for CarrierShipPackEvent
Source§impl Serialize for CarrierShipPackEvent
impl Serialize for CarrierShipPackEvent
impl StructuralPartialEq for CarrierShipPackEvent
Auto Trait Implementations§
impl Freeze for CarrierShipPackEvent
impl RefUnwindSafe for CarrierShipPackEvent
impl Send for CarrierShipPackEvent
impl Sync for CarrierShipPackEvent
impl Unpin for CarrierShipPackEvent
impl UnwindSafe for CarrierShipPackEvent
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