Struct amtrak_api::responses::StationResponse
source · pub struct StationResponse(pub HashMap<String, Station>);Expand description
The response from the /stations or /stations/{:station_code} endpoint.
Tuple Fields§
§0: HashMap<String, Station>Each key in the hashmap is the unique station code which will match the
code field. The value is the Station structure that is
associated with the unique station code.
Trait Implementations§
source§impl Clone for StationResponse
impl Clone for StationResponse
source§fn clone(&self) -> StationResponse
fn clone(&self) -> StationResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for StationResponse
impl Debug for StationResponse
source§impl<'de> Deserialize<'de> for StationResponse
impl<'de> Deserialize<'de> for StationResponse
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 RefUnwindSafe for StationResponse
impl Send for StationResponse
impl Sync for StationResponse
impl Unpin for StationResponse
impl UnwindSafe for StationResponse
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