Struct spacetraders::shared::MarketplaceData [−][src]
pub struct MarketplaceData { pub symbol: Good, pub volume_per_unit: i32, pub price_per_unit: i32, pub purchase_price_per_unit: i32, pub sell_price_per_unit: i32, pub quantity_available: i32, }
The representation of a single good within a marketplace
Fields
symbol: Good
The type of good for this marketplace data
volume_per_unit: i32
How much volume this good consumes
price_per_unit: i32
The price per unit of the good
purchase_price_per_unit: i32
The purchase price per unit of a good
sell_price_per_unit: i32
The sell price per unit of a good
quantity_available: i32
How much of the good is available at this location
Trait Implementations
impl Clone for MarketplaceData
[src]
impl Clone for MarketplaceData
[src]fn clone(&self) -> MarketplaceData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MarketplaceData
[src]
impl Copy for MarketplaceData
[src]impl<'de> Deserialize<'de> for MarketplaceData
[src]
impl<'de> Deserialize<'de> for MarketplaceData
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for MarketplaceData
impl RefUnwindSafe for MarketplaceData
impl Send for MarketplaceData
impl Send for MarketplaceData
impl Sync for MarketplaceData
impl Sync for MarketplaceData
impl Unpin for MarketplaceData
impl Unpin for MarketplaceData
impl UnwindSafe for MarketplaceData
impl UnwindSafe for MarketplaceData
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]