pub struct MarketTradeGood {
pub symbol: String,
pub trade_volume: u32,
pub supply: Supply,
pub purchase_price: u32,
pub sell_price: u32,
}Expand description
Fields§
§symbol: StringThe symbol of the trade good.
trade_volume: u32The typical volume flowing through the market for this type of good. The larger the trade volume, the more stable prices will be.
supply: SupplyA rough estimate of the total supply of this good in the marketplace.
purchase_price: u32The price at which this good can be purchased from the market.
sell_price: u32The price at which this good can be sold to the market.
Implementations§
Trait Implementations§
Source§impl Clone for MarketTradeGood
impl Clone for MarketTradeGood
Source§fn clone(&self) -> MarketTradeGood
fn clone(&self) -> MarketTradeGood
Returns a duplicate 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 MarketTradeGood
impl Debug for MarketTradeGood
Source§impl<'de> Deserialize<'de> for MarketTradeGood
impl<'de> Deserialize<'de> for MarketTradeGood
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 MarketTradeGood
impl PartialEq for MarketTradeGood
Source§impl Serialize for MarketTradeGood
impl Serialize for MarketTradeGood
impl StructuralPartialEq for MarketTradeGood
Auto Trait Implementations§
impl Freeze for MarketTradeGood
impl RefUnwindSafe for MarketTradeGood
impl Send for MarketTradeGood
impl Sync for MarketTradeGood
impl Unpin for MarketTradeGood
impl UnwindSafe for MarketTradeGood
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