Struct spacetraders::shared::FlightPlanData[][src]

pub struct FlightPlanData {
    pub id: String,
    pub ship_id: String,
    pub fuel_consumed: i32,
    pub fuel_remaining: i32,
    pub time_remaining_in_seconds: i32,
    pub created_at: DateTime<Utc>,
    pub arrives_at: DateTime<Utc>,
    pub terminated_at: Option<DateTime<Utc>>,
    pub destination: String,
    pub departure: String,
    pub distance: i32,
}

A representation of a single flight plan

Fields

id: String

The id of the flight plan

ship_id: String

The id of the ship on this flight plan

fuel_consumed: i32

The fuel consumed by this flight plan

fuel_remaining: i32

The fuel remaining after the flight plan completes

time_remaining_in_seconds: i32

The time remaining until the ship arrives at the destination in seconds

created_at: DateTime<Utc>

The date time that the flight plan was created at

arrives_at: DateTime<Utc>

The DateTime at which the ship will arrive

terminated_at: Option<DateTime<Utc>>

The termination DateTime of the flight plan. I believe this could be before the arrives at date if the flight plan is cancelled mid flight (which might not be developed yet)

destination: String

The ships destination

departure: String

The ships departure location

distance: i32

The distance of the flight plan

Trait Implementations

impl Clone for FlightPlanData[src]

impl Debug for FlightPlanData[src]

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