Struct spacetraders::shared::LocationMarketplaceData[][src]

pub struct LocationMarketplaceData {
    pub name: String,
    pub symbol: String,
    pub location_type: String,
    pub x: i32,
    pub y: i32,
    pub marketplace: Vec<MarketplaceData>,
    pub anomaly: Option<String>,
    pub allows_construction: bool,
    pub structures: Vec<LocationMarketplaceStructure>,
    pub messages: Option<Vec<String>>,
}

A representation of marketplace data for a location

Fields

name: String

The friendly name of the location

symbol: String

The system symbol of the location

location_type: String

The location type

x: i32

X coordinate of the location

y: i32

Y coordinate of the location

marketplace: Vec<MarketplaceData>

The marketplace data for the location

anomaly: Option<String>

The anomaly at a specific location

allows_construction: bool

Whether or not the location allows constructing new structures

structures: Vec<LocationMarketplaceStructure>

Any structures present at this location

messages: Option<Vec<String>>

Any messages

Trait Implementations

impl Clone for LocationMarketplaceData[src]

impl Debug for LocationMarketplaceData[src]

impl<'de> Deserialize<'de> for LocationMarketplaceData[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.