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 Clone for FlightPlanData
[src]fn clone(&self) -> FlightPlanData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for FlightPlanData
[src]
impl<'de> Deserialize<'de> for FlightPlanData
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for FlightPlanData
impl RefUnwindSafe for FlightPlanData
impl Send for FlightPlanData
impl Send for FlightPlanData
impl Sync for FlightPlanData
impl Sync for FlightPlanData
impl Unpin for FlightPlanData
impl Unpin for FlightPlanData
impl UnwindSafe for FlightPlanData
impl UnwindSafe for FlightPlanData
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]