Struct spacetraders::shared::ShipForSale[][src]

pub struct ShipForSale {
    pub ship_type: String,
    pub class: String,
    pub max_cargo: i32,
    pub speed: i32,
    pub manufacturer: String,
    pub plating: i32,
    pub weapons: i32,
    pub purchase_locations: Vec<PurchaseLocation>,
}

A representation of a ship for sales

Fields

ship_type: String

The type of the ship

class: String

The class of the ship

max_cargo: i32

The maximum cargo volume of the ship

speed: i32

The ships speed rating

manufacturer: String

The manufacturer of the ship

plating: i32

The ships defensive rating

weapons: i32

The weapons rating of the ship

purchase_locations: Vec<PurchaseLocation>

The locations that this ship can be purchased at

Trait Implementations

impl Clone for ShipForSale[src]

impl Debug for ShipForSale[src]

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