pub struct MarketBuyEvent {
pub market_id: u64,
pub kind: Commodity,
pub count: u16,
pub buy_price: u64,
pub total_cost: u64,
}
Expand description
Fired when buying 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 bought.
count: u16
The amount of commodities bought.
buy_price: u64
The price per commodity in credits.
total_cost: u64
The total cost of the entire transaction in credits.
Trait Implementations§
Source§impl Clone for MarketBuyEvent
impl Clone for MarketBuyEvent
Source§fn clone(&self) -> MarketBuyEvent
fn clone(&self) -> MarketBuyEvent
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 MarketBuyEvent
impl Debug for MarketBuyEvent
Source§impl<'de> Deserialize<'de> for MarketBuyEvent
impl<'de> Deserialize<'de> for MarketBuyEvent
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 MarketBuyEvent
impl PartialEq for MarketBuyEvent
Source§impl Serialize for MarketBuyEvent
impl Serialize for MarketBuyEvent
impl StructuralPartialEq for MarketBuyEvent
Auto Trait Implementations§
impl Freeze for MarketBuyEvent
impl RefUnwindSafe for MarketBuyEvent
impl Send for MarketBuyEvent
impl Sync for MarketBuyEvent
impl Unpin for MarketBuyEvent
impl UnwindSafe for MarketBuyEvent
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