pub struct CarrierTradeOrderEvent {
pub carrier_id: u64,
pub black_market: bool,
pub commodity: MixedCommodity,
pub commodity_localized: Option<String>,
pub order: CarrierTradeOrderEventOrder,
pub price: Option<u64>,
}
Expand description
Fired when managing a fleet carrier trade order. This is fired for trade orders for both ship commodities and odyssey items.
Fields§
§carrier_id: u64
The id of the carrier that the player deposited fuel to. This is functionally the same as the market id.
black_market: bool
Whether the trade order is going through the black market.
commodity: MixedCommodity
The commodity this trade order is for. Note that this can both be a ship commodity and an odyssey item.
commodity_localized: Option<String>
The localized name of the commodity for this trade odder.
order: CarrierTradeOrderEventOrder
The type of action for this order.
price: Option<u64>
The set price for the trade order. For purchase orders it is the price per commodity that has been reserved. For sale orders, this is the price per commodity the carrier is buying for.
Trait Implementations§
Source§impl Clone for CarrierTradeOrderEvent
impl Clone for CarrierTradeOrderEvent
Source§fn clone(&self) -> CarrierTradeOrderEvent
fn clone(&self) -> CarrierTradeOrderEvent
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 CarrierTradeOrderEvent
impl Debug for CarrierTradeOrderEvent
Source§impl<'de> Deserialize<'de> for CarrierTradeOrderEvent
impl<'de> Deserialize<'de> for CarrierTradeOrderEvent
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 CarrierTradeOrderEvent
impl PartialEq for CarrierTradeOrderEvent
Source§impl Serialize for CarrierTradeOrderEvent
impl Serialize for CarrierTradeOrderEvent
impl StructuralPartialEq for CarrierTradeOrderEvent
Auto Trait Implementations§
impl Freeze for CarrierTradeOrderEvent
impl RefUnwindSafe for CarrierTradeOrderEvent
impl Send for CarrierTradeOrderEvent
impl Sync for CarrierTradeOrderEvent
impl Unpin for CarrierTradeOrderEvent
impl UnwindSafe for CarrierTradeOrderEvent
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