pub struct Station {
pub name: String,
pub code: String,
pub tz: String,
pub lat: f64,
pub lon: f64,
pub address1: String,
pub address2: String,
pub city: String,
pub state: String,
pub zip: u32,
pub trains: Vec<String>,
}
Expand description
Represents a unique station that Amtrak services
Fields§
§name: String
§code: String
§tz: String
§lat: f64
The latitude of the station
lon: f64
The longitude of the station
address1: String
§address2: String
The second address line of the station
city: String
§state: String
§zip: u32
§trains: Vec<String>
A list of current train_id
that have departed from or are enroute to
this station.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Station
impl<'de> Deserialize<'de> for Station
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Station
impl RefUnwindSafe for Station
impl Send for Station
impl Sync for Station
impl Unpin for Station
impl UnwindSafe for Station
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more