pub enum CarrierTradeOrderEventOrder {
PurchaseOrder(u32),
SaleOrder(u32),
CancelTrade(bool),
}
Expand description
The type of action for a given trade order.
Variants§
PurchaseOrder(u32)
For when the fleet carrier is buying commodities from other commanders, with the specified number of commodities to buy.
SaleOrder(u32)
For when the fleet carrier is selling commodities to other commanders, with a specified number of commodities to sell.
CancelTrade(bool)
For when cancelling the given trade order. Is always true.
Implementations§
Source§impl CarrierTradeOrderEventOrder
impl CarrierTradeOrderEventOrder
Sourcepub fn is_purchase_order(&self) -> bool
pub fn is_purchase_order(&self) -> bool
Whether the given order is a purchase order.
Sourcepub fn is_sale_order(&self) -> bool
pub fn is_sale_order(&self) -> bool
Whether the given order is a sell order.
Sourcepub fn is_cancel_trade_order(&self) -> bool
pub fn is_cancel_trade_order(&self) -> bool
Whether the given order is a cancellation.
Trait Implementations§
Source§impl Clone for CarrierTradeOrderEventOrder
impl Clone for CarrierTradeOrderEventOrder
Source§fn clone(&self) -> CarrierTradeOrderEventOrder
fn clone(&self) -> CarrierTradeOrderEventOrder
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 CarrierTradeOrderEventOrder
impl Debug for CarrierTradeOrderEventOrder
Source§impl<'de> Deserialize<'de> for CarrierTradeOrderEventOrder
impl<'de> Deserialize<'de> for CarrierTradeOrderEventOrder
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
impl StructuralPartialEq for CarrierTradeOrderEventOrder
Auto Trait Implementations§
impl Freeze for CarrierTradeOrderEventOrder
impl RefUnwindSafe for CarrierTradeOrderEventOrder
impl Send for CarrierTradeOrderEventOrder
impl Sync for CarrierTradeOrderEventOrder
impl Unpin for CarrierTradeOrderEventOrder
impl UnwindSafe for CarrierTradeOrderEventOrder
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