Struct amtrak_api::responses::TrainStation
source · pub struct TrainStation {
pub name: String,
pub code: String,
pub tz: String,
pub bus: bool,
pub schedule_arrival: DateTime<FixedOffset>,
pub schedule_departure: DateTime<FixedOffset>,
pub arrival: Option<DateTime<FixedOffset>>,
pub departure: Option<DateTime<FixedOffset>>,
pub arrival_comment: String,
pub departure_comment: String,
pub status: TrainStatus,
}Fields§
§name: String§code: String§tz: StringThe timezone of this station.
bus: bool§schedule_arrival: DateTime<FixedOffset>The scheduled arrival time of this train for the current station.
schedule_departure: DateTime<FixedOffset>The scheduled departure time of this train for the current station.
arrival: Option<DateTime<FixedOffset>>The actual arrival time of this train for the current station specified
by name or code. When the status is Departed this
field shows a historical value of how late or early the train
arrived. When the status is Enroute this field is a
prediction on how late or early the train will arrive.
Examples:
2023-09-05T16:22:00-05:00
2023-09-05T15:54:00-05:00
null or not included in response
departure: Option<DateTime<FixedOffset>>The actual departure time of this train for the current station
specified by name or code. When the status is Departed
this field shows a historical value of how late or early the train
departed. When the status is Enroute this field is a
prediction on how late or early the train will depart.
Examples:
2023-09-05T16:22:00-05:00
2023-09-05T15:54:00-05:00
null or not included in response
arrival_comment: StringA human readable comment on the arrival time of this train for current
station specified by name or code. When the status is
Departed this field shows a historical value of how late or
early the train arrived. When the status is Enroute this
field is a prediction on how late or early the train will arrive.
Examples:
19 Minutes Late
On Time
NaN Minutes Early (Yes really)
departure_comment: StringA human readable comment on the departure time of this train for the
current station specified by name or code. When the
status is Departed this field shows a historical value of
how late or early the train departed. When the status is
Enroute this field is a prediction on how late or early the
train will depart.
Examples:
19 Minutes Late
On Time
NaN Minutes Early (Yes really)
status: TrainStatusThe current status of this train for the current station specified by
[name] or [code].
Trait Implementations§
source§impl Clone for TrainStation
impl Clone for TrainStation
source§fn clone(&self) -> TrainStation
fn clone(&self) -> TrainStation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more