pub struct MarketSellEvent {
pub market_id: u64,
pub kind: Commodity,
pub count: u16,
pub sell_price: u64,
pub total_sale: u64,
pub average_price_paid: f32,
}
Expand description
Fired when selling commodities at a given market.
Fields§
§market_id: u64
The id of the market where the player has bought the commodities.
kind: Commodity
The kind of commodity sold.
count: u16
The amount of commodities sold.
sell_price: u64
The price per commodity in credits.
total_sale: u64
The total cost of the entire transaction in credits.
average_price_paid: f32
Trait Implementations§
Source§impl Clone for MarketSellEvent
impl Clone for MarketSellEvent
Source§fn clone(&self) -> MarketSellEvent
fn clone(&self) -> MarketSellEvent
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 MarketSellEvent
impl Debug for MarketSellEvent
Source§impl<'de> Deserialize<'de> for MarketSellEvent
impl<'de> Deserialize<'de> for MarketSellEvent
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 MarketSellEvent
impl PartialEq for MarketSellEvent
Source§impl Serialize for MarketSellEvent
impl Serialize for MarketSellEvent
impl StructuralPartialEq for MarketSellEvent
Auto Trait Implementations§
impl Freeze for MarketSellEvent
impl RefUnwindSafe for MarketSellEvent
impl Send for MarketSellEvent
impl Sync for MarketSellEvent
impl Unpin for MarketSellEvent
impl UnwindSafe for MarketSellEvent
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