pub struct Market {
pub symbol: String,
pub exports: Vec<TradeGood>,
pub imports: Vec<TradeGood>,
pub exchange: Vec<TradeGood>,
pub transactions: Option<Vec<MarketTransaction>>,
pub trade_goods: Option<Vec<MarketTradeGood>>,
}Expand description
Fields§
§symbol: StringThe symbol of the market. The symbol is the same as the waypoint where the market is located.
exports: Vec<TradeGood>The list of goods that are exported from this market.
imports: Vec<TradeGood>The list of goods that are sought as imports in this market.
exchange: Vec<TradeGood>The list of goods that are bought and sold between agents at this market.
transactions: Option<Vec<MarketTransaction>>The list of recent transactions at this market. Visible only when a ship is present at the market.
trade_goods: Option<Vec<MarketTradeGood>>The list of goods that are traded at this market. Visible only when a ship is present at the market.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Market
impl<'de> Deserialize<'de> for Market
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 Market
Auto Trait Implementations§
impl Freeze for Market
impl RefUnwindSafe for Market
impl Send for Market
impl Sync for Market
impl Unpin for Market
impl UnwindSafe for Market
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