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 Copy for MarketplaceData[src]

impl Debug for MarketplaceData[src]

impl<'de> Deserialize<'de> for MarketplaceData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.