pub struct CarrierModulePackEvent {
pub carrier_id: u64,
pub operation: CarrierModulePackEventOperation,
pub pack_theme: String,
pub pack_tier: u8,
pub cost: Option<u64>,
pub refund: Option<u64>,
}
Expand description
Fired when managing module 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: CarrierModulePackEventOperation
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 CarrierModulePackEvent
impl Clone for CarrierModulePackEvent
Source§fn clone(&self) -> CarrierModulePackEvent
fn clone(&self) -> CarrierModulePackEvent
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 CarrierModulePackEvent
impl Debug for CarrierModulePackEvent
Source§impl<'de> Deserialize<'de> for CarrierModulePackEvent
impl<'de> Deserialize<'de> for CarrierModulePackEvent
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 CarrierModulePackEvent
impl PartialEq for CarrierModulePackEvent
Source§impl Serialize for CarrierModulePackEvent
impl Serialize for CarrierModulePackEvent
impl StructuralPartialEq for CarrierModulePackEvent
Auto Trait Implementations§
impl Freeze for CarrierModulePackEvent
impl RefUnwindSafe for CarrierModulePackEvent
impl Send for CarrierModulePackEvent
impl Sync for CarrierModulePackEvent
impl Unpin for CarrierModulePackEvent
impl UnwindSafe for CarrierModulePackEvent
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